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 file defines how the systems uses its networks.
There are six Directives that can be used. If one is not there it does not apply.
| NETWORKING | Turns the networking on and off | Yes or No |
| NETWORKING_IPV6 | Turns the networking on and off using IPv6 | Yes or No |
| NSDOMAIN | NIS domain name if connected to an NIS | Only used for STATIC |
| HOSTNAME | Hostname of the Server | |
| GATEWAY | Gateway Address | |
| GATEWAYDEV | IP Address | Only used for STATIC |
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 |