Saner Ifupdown Defaults
=======================

Without going into complex network detection issues, guessnet can be used with
very little effort to avoid the annoying DHCP timeout at boot when no cable is
connected to the ethernet device.

To do it, just use something like this /etc/network/interfaces file:

----------------------------------------------------------------------
auto lo eth0

iface lo inet loopback

# Use guessnet
mapping eth0
	# Too bad there's no way to pass commandline options to script
	# (see ifupdown bug #139383)
	script /usr/sbin/guessnet-ifupdown
	map default: auto

# If there is no link detected, don't try DHCP
#
# Here it would be useful to have 'fail' method for iface that just
# keeps the interface down (see ifupdown bug #275326)
# In the meantime, we have to specify some random configuration data:
iface disconnected inet static
	address 10.0.0.1
	netmask 255.255.255.0
	test missing-cable

# By default, perform DHCP
iface auto inet dhcp
----------------------------------------------------------------------
