Static IP Config

From SingletonMillerWiki
Revision as of 04:41, 4 June 2012 by Martin (Talk | contribs)

Jump to: navigation, search

Setting a static IP is useful to ensure that any DHCP activity on your network won't change the location of your RPi.

To do this we need to edit /etc/network/interfaces

sudo nano /etc/network/interfaces


replace the line iface eth0 inet dhcp with

iface eth0 inet static
 
address 192.168.0.20
 
netmask 255.255.255.0
 
gateway 192.168.0.1

The gateway is the address for the router and may need to be adjusted.