A, Redhat
1, interface configuration
slightly
2, background configuration
Profile path / etc / sysconfig / network-scripts / ifcfg-eth0 or ifcfg-ethxxxxxxxx
BOOTPROTO Note To change the static static, this is not the default
PREFIX in centos inside called NETMASK, meaning 24 is 255.255.255.0
HWADDR is a physical address, if there is no default is no, does not require specially configured
Example 1:
Example 2 (high version of the display content will be more):
Restart command: Service Network restart
Two, Centos
1, interface configuration
2, background configuration
centos6 card restart method: service network restart
the network card restart method centos7 of: systemctl restart network