vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="static"
ONBOOT=yes
IPADDR=192.168.8.106
NETMASK=255.255.252.0
GATEWAY=192.168.8.1
DNS1=8.8.8.8
DNS2=114.114.114.144
service network restart
vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO="static"
ONBOOT=yes
IPADDR=192.168.8.106
NETMASK=255.255.252.0
GATEWAY=192.168.8.1
DNS1=8.8.8.8
DNS2=114.114.114.144
service network restart