Linux network startup
The network startup script is used to bring up network devices found in the /etc/sysconfig directory. It starts by using the /etc/sysconfig/network file to set various networking environment variables. The /etc/sysconfig/network file on my system is:
NETWORKING=yes
FORWARD_IPV4="yes"
HOSTNAME="myhost"
GATEWAY="10.1.1.10"
GATEWAYDEV="eth0"
It therefore sets the environment variables listed to the values specified in the network file. If it can find the required binaries for setting up networking it will enter the /etc/sysconfig/network-scripts directory and look for ifcfg network files which are files for network devices. My ifcfg-eth0 file is:
DEVICE="eth0"
IPADDR="10.1.1.100"
NETMASK="255.255.0.0"
ONBOOT="yes"
BOOTPROTO="none"
IPXNETNUM_802_2=""
IPXPRIMARY_802_2="no"
IPXACTIVE_802_2="no"
IPXNETNUM_802_3=""
IPXPRIMARY_802_3="no"
IPXACTIVE_802_3="no"
IPXNETNUM_ETHERII=""
IPXPRIMARY_ETHERII="no"
IPXACTIVE_ETHERII="no"
IPXNETNUM_SNAP=""
IPXPRIMARY_SNAP="no"
IPXACTIVE_SNAP="no"
|