#vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.117
netmask 255.255.255.0
gateway 192.168.1.1
#vim /etc/resolv.conf
nameserver 202.117.0.20
nameserver 202.117.0.21
and then restart service
#vim /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.117
netmask 255.255.255.0
gateway 192.168.1.1
#vim /etc/resolv.conf
nameserver 202.117.0.20
nameserver 202.117.0.21
and then restart service