Page 1 of 1

Static IP and ARPwatch

Posted: Mon Aug 26, 2013 7:07 pm
by ctravis
Is it possible to have a static IP on a Raspbian device with ARPwatch?

I'm reading where DHCP is recommended, but I would like to utilize a static IP for SSH purposes.

Thank you to anyone who might be able to answer,

Charlie

Re: Static IP and ARPwatch

Posted: Thu Aug 29, 2013 11:57 am
by sprinkmeier
If you

Code: Select all

apt-get install avahi-daemon
then you can

Code: Select all

ssh raspberrypi.local
If you want a static IP address sometimes the easiest way is to set up a static lease on your DHCP server.

Failing that, you can disable the dhcp-client on the Pi and set a static IP address, something like

Code: Select all

$ cat /etc/network/interfaces 
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
    address 10.149.1.100
    netmask 255.255.255.0
    up ip route add default via 10.149.1.254