Redhat: Network Config files
Jump to navigation
Jump to search
Network Configuration Files
All of the files used to configure the networks are stored in two locations:
/etc/sysconfig/network /etc/sysconfig/network-scripts
Network
Network Scripts
The network scripts defined the configuration for each network adaptor. They are stored in files named ifcfg-<device>, one for each adapter.
These files use directives to configure the network. They are not always used.
| DEVICE | defines the device to be configured | |
| BOOTPROTO | How the IP is determined | STATIC or DHCP |
| BROADCAST | Broadcast Address | Only used for STATIC |
| DNS1 | DNS server Address | |
| GATEWAY | Gateway Address | |
| IPADDR | IP Address | Only used for STATIC |
| HWADDR | MAC Address of the device | |
| NETMASK | Netmask Address | |
| NM_CONTROLLED | Is the device controlled by the Network Manager | Yes or No |
| ONBOOT | Should the device be booted on start up | Yes or No |