Monday, April 29, 2013

added static IP to Raspberry Pi to make it easy to find

I don't want to change the eth0 interface in the RPi to stop using DHCP because I like getting system config from DHCP. I don't want to set up DHCP reservations for my RPi because that's an extra step that doesn't provide any real advantage. To make my RPi easy to find, I've added this section to the end of the /etc/network/interfaces file.
auto eth0:1
iface eth0:1 inet static
With this I get a static IP address of that I know I can always use to find my RPi but I also get the benefit of DHCP on (such as DNS config).