Step 1. Open terminal
Step 2. Switch to root, next
#vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE = "eth0"
BOOTPROTO = "Static"
ONBOOT = "Yes"
TYPE = "Ethernet"
IPADDR = 192.168.4.4
NETMASK = 255.255.255.0
GATEWAY = 192.168.4.7
DNS1 = 8.8.8.8
DNS2 = 8.8.4.4
Press Esc, wq!
# /etc/init.d/network restart