===== Centos network interface configuration file ifcfg-eth
File/etc/sysconfig/network-scripts/ifcfg-eth0 in/etc/sysconfig/network-script under this directory, store the network interface (NIC) the ifcfg-eth0 is the default first network interface, if there are multiple network interfaces on the machine, then the name will push the ifcfg-eth1, ifcfg-eth2, ifcfg-eth3 ...... (The file here is very important and involves whether the network can work normally ).
==== Setting format: Set Value = value ====
Set the project as follows:
* Device Interface Name (device, nic)
* Userctl [Yes | no] (whether non-root users can control the device)
* [None | static | BOOTP | DHCP] (protocol not used during boot | static IP allocation | BOOTP protocol | DHCP protocol)
* Hwaddr MAC address
* Whether the network interface is valid when the onboot system is started (Yes/No)
* Type network type (usually ethemet)
* Netmask network mask
* Ipaddr IP Address
* Whether ipv6init IPv6 is valid (Yes/No)
* Gateway default gateway IP Address
* Broadcast address
* Network address
==== See the following example ====
* Device = eth0
* Bootproto = static
* Broadcast = 192.168.1.255
* Hwaddr = 00: 0C: 2x: 6x: 0x: xx
* Ipaddr = 192.168.1.23
* Netmask = 255.255.255.0
* Network = 192.168.1.0
* Onboot = Yes
* Type = Ethernet