#sudo vi /etc/network/interfaces iface eth0 inet static address 192.168.0.6 netmask 255.255.255.0 gatway 192.168.0.1 #sudo /etc/init.d/networking restart