Raspberry pi – Setting your pi to a static ip address
In the GUI left click in the bottom left hand corner on the blue cross to display the options menu (Like the start button in windows) go to accessories and then left click on LXterminal to display the terminal window
Type in the following command
sudo nano /etc/network/interfaces
This file controls the IP address of the raspberry pi and other network interfaces if required.
Scroll down to “iface eth0 inet” which is under “iface lo inet loopback” and add the following information
iface eth0 inet “change dhcp to static”
address (Ip address you want for the Pi)
netmask (Subnet of your perosnal network)
gateway (Ip address of your gateway/router)
You need to inculde the titles of each section in the file and not just the numbers for this work.
So mine would look like this
iface eth0 inet static
Save the updated interfaces file by pushing ctrl+x and then pushing Y and then enter to return to the terminal.
Give your raspberry pi a reboot to pick up the new IP address