Configure fixed IP address
From WickyWiki
Note: configure DHCP in your router to reserve the 'fixed' IP address of your machine. This way you can be sure every IP address is used only once.
Configure fixed IP address 192.168.1.8:
sudo gedit /etc/network/interfaces
#get IP from DHCP: ##auto lo ##iface lo inet loopback #fixed IP: auto eth0 iface eth0 inet static address 192.168.1.8 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
DNS nameserver:
sudo gedit /etc/resolv.conf
nameserver 192.168.1.1
Restart networking:
sudo /etc/init.d/networking restart
List network interfaces:
ifconfig