1) Disable Network Manager:
sudo update-rc.d -f NetworkManager remove sudo apt-get remove network-manage
2) Edit /etc/network/interfaces:
auto lo eth0 iface lo inet loopback iface eth0 inet static address 192.168.2.2 netmask 255.255.255.0 gateway 192.168.2.1 dns-domain 192.168.2.1
3) Edit /etc/resolv.conf:
domain Home nameserver 192.168.2.1
4) Restart networking:
sudo /etc/init.d/networking restartFinally, test it with your own risk :D
source : ubuntu forum
comment please ... ConversionConversion EmoticonEmoticon