How to configure your Raspberry Pi with a static IP:
Simple:
Edit “/etc/network/interfaces” and change:
iface eth0 inet dhcp
to
iface eth0 inet static address 192.168.0.9 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1
The easiest way to change the file is with the SD card still plugged into your PC and then write “sudo nautilus” in the terminal, navigate to the file, edit and save it.
Remember to change the addresses to suit your needs. Mine is 192.168.0.9 because my router is set to hand out dynamic IP’s from the range 192.168.0.10, so the addresses below are reserved for static IP devices, such as servers, printers and embedded units.