Tuesday, April 20, 2010

Local-link Address (LLA, networking on Debian/Ubuntu Linux How To

Instructions for connecting external IP devices to the second NIC on a Debian/Ubuntu box using Local-link Address networking (

e.g. connecting a Axis 206M camera.

Install on the Debian/Ubuntu PC:

  • dhcp3-server
  • avahi-autoipd
To configure dhcpd, add the following lines to /etc/dhcp3/dhcpd.conf:

subnet netmask {
Add a route to to the second NIC in order to send UDP broadcast traffic to it. This is accomplished by the last two lines below in /etc/network/interfaces:

% cat /etc/network/interfaces
auto lo eth0 eth1
iface lo inet loopback
iface eth0 inet dhcp
iface eth1 inet dhcp
post-up route add -net netmask  metric 99 dev eth1
post-down route del -net netmask  metric 99 dev eth1