# vi /etc/network/interfaces
delete all the content.
add these:
===
auto lo
iface lo inet loopback
auto eht0
iface eht0 inet static
address 192.168.1.2
netmask 255.255.255.0
gateway 192.168.1.1
===
save it.
# vi /etc/resolv.conf
delete all the content.
add these:
===
nameserver 208.67.222.222 # OpenDNS
===
save it.
# /etc/init.d/networking restart