Centos 6.4 minimal static IP configuration linuxcentos network configuration 1. Set static IP and DNS Shell code vi/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE = "eth0" BOOTPROTO = "static" HWADDR =" 00: 0C: 29: 86: 3D: 16 "Listen 6init =" yes "NM_CONTROLLED =" yes "ONBOOT =" yes "TYPE =" Ethernet "UUID =" dcf18d86-45ea-4b5c-9627-e75b19b3b6e7 "IPADDR = 192.168.1.88 NETMAST = 255.255.255.0 DNS1 = 61.139.2.69 2. Gateway settings add the Shell code to the last line of the file vi/etc/sysconfig/network: GATEWAY = 192.168.1.1 3. network command Shell code ifdown eth0 // disable network ifconfig eth0 down // disable network ifup eth0 // enable network ifconfig eth0 up // enable network service network start // start network service network stop // stop the network service network restart // restart the network service network status // view the network service status ifconfig-a // view the parameters of all NICs