ipv4ll fallback

Thomas Charron twaffle at gmail.com
Mon Feb 6 10:34:36 EST 2012


  Is there any easy way to configure dhcp to fallback to a link local
address, should dhcp requests fail?

  I am currently configuring my network stack statically via
/etc/network/interfaces.  The application broadcasts via a built in
uPnP stack, so it can function if it doesn't have an IP address.  But
it's headless, so without the network, there's no way to reconfigure
it.

  The idea is, in a static IP environment, service would boot, detect
the link local address, which would allow them to ssh into the machine
and reconfigure it for a static address is needed.

  I could have it configured static by default, and as part of the
provisioning reconfigure it for dynamic.

  Really just wanted to see if someone had a 'just do this' idea.

auto lo
iface lo inet loopback

auto bridge
iface bridge inet dhcp
        bridge_ports eth0 eth2 eth3
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

auto eth1
iface eth1 inet static
        address 192.6.94.4
        network 192.6.94.0
        netmask 255.255.255.0n UIP
        broadcast 192.6.94.255

-- 
-- Thomas


More information about the gnhlug-discuss mailing list