login with root
cd /etc/sysconfig/network-scripts
vi edit ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:51:9C:3F
TYPE=Ethernet
UUID=96c8e78f-23a5-4380-b2c1-c0cd427e63da
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static-------------set to static
IPADDR=192.168.100.217-------------ip address
NETMASK=255.255.254.0-------------subnet mask
GETEWAY=192.168.100.1---------------Gateway
Excuting an order
service network restart