auto lo eth0

iface lo inet loopback

mapping eth0
	script guessnet-ifupdown
	# List of stanzas guessnet should scan for
	#   If none is specified, scans for all stanzas
	#map home work
	map default: dhcp
	map timeout: 3
	map verbose: true

# Home network configuration
iface home inet static
	address 192.168.1.2
	netmask 255.255.255.0
	broadcast 192.168.1.255
	gateway 192.168.1.1
	dns-search home.loc
	dns-nameservers 192.168.1.1
	# Check for one of these hosts:
	test1-peer address 192.168.1.1 mac 00:01:02:03:04:05
	test2-peer address 192.168.1.3 mac 00:01:02:03:04:06

# Work network configuration
iface work inet static
	address 10.1.1.42
	netmask 255.255.255.0
	broadcast 10.1.1.255
	gateway 10.1.1.1
	dns-search work.loc
	dns-nameservers 10.1.1.1
	# the other guessnet scan:
	test-command /usr/local/bin/check_work

# Second job network configuration
iface work2 inet static
	address 192.168.2.23
	netmask 255.255.255.0
	broadcast 192.168.2.255
	gateway 192.168.2.1
	dns-search work2.loc
	dns-nameservers 192.168.2.1
	# Specify a source address in case the peer doesn't reply to
        # ARP packets coming from 0.0.0.0
	test-peer address 192.168.2.1 mac 00:01:02:03:04:05 source 192.168.2.23

# PPPOE network configuration
iface pppoe inet ppp
	test pppoe
	# It could also be:
	#test-pppoe please

# I'd really appreciate a 'disabled' method for iface (#275326)
iface interface inet manual
    test missing-cable
    pre-up echo No link present.
    pre-up false

# guessnet default
iface none inet dhcp
