ctravis
Posts: 24
Joined: Thu Aug 22, 2013 3:45 pm

Static IP and ARPwatch

Mon Aug 26, 2013 7:07 pm

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

sprinkmeier
Posts: 410
Joined: Mon Feb 04, 2013 10:48 am
Contact: Website

Re: Static IP and ARPwatch

Thu Aug 29, 2013 11:57 am

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

Return to “General discussion”