system network scripts
directory
- /etc/sysconfig
files
- /etc/sysconfig/network - The network configuration file for the gateway and subnet. See the following example:
NETWORKING=yes FORWARD_IPV4=false HOSTNAME=batman.superhero.com DOMAINNAME=superhero.com GATEWAY=192.168.193.121 GATEWAYDEV=eth0
directory
- /etc/sysconfig/network-scripts
files
- /etc/sysconfig/network-scripts/ifcfg-eth0 - Defines the IP address for the primary physical network interface
- /etc/sysconfig/network-scripts/ifcfg-eth0:1 - The first of X number aliases for an interface.
The Ethernet interface may have only 1 address assigned to it, or it may have a number of aliases also assigned. Each alias after the primary interface address are designated by the colon and following number on the series of network configuration files.
ifcfg-eth0 file example:
DEVICE=eth0 BOOTPROTO=static BROADCAST=192.168.193.127 IPADDR=192.168.193.122 NETMASK=255.255.255.0 NETWORK=192.168.193.0 ONBOOT=yes
ifcfg-eth0:1 alias example:
DEVICE=eth0:1 BOOTPROTO=static BROADCAST=192.168.193.127 IPADDR=192.168.193.123 NETMASK=255.255.255.0 NETWORK=192.168.193.0 ONBOOT=yes