######################################################################
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
######################################################################

# We always want the loopback interface. Whether we want ifup/ifdown to
# know about is another matter, perhaps.
#
auto lo
iface lo inet loopback
iface lo inet6 loopback

auto eth0 eth1 eth2

# An example ethernet card setup: (broadcast and gateway are optional)
#
iface eth0 inet static
     address 192.0.2.254
     network 192.0.2.0
     netmask 255.255.255.0
     broadcast 192.0.2.255

iface eth0 inet6 static
     address 2001:db8:0:2::254
     netmask 64

iface eth1 inet static
     address 192.1.2.23
     network 192.1.2.0
     netmask 255.255.255.0
     broadcast 192.1.2.255
     gateway 192.1.2.254
     up route add -net 192.0.1.0 netmask 255.255.255.0 gw 192.1.2.45

iface eth1 inet6 static
     address 2001:db8:1:2::23
     netmask 64
     gateway 2001:db8:1:2::254
     up ip -6 route add 2001:db8:0:1::254/48 via 2001:db8:1:2::45


iface eth2 inet static
     address 192.9.2.23
     network 192.9.2.0
     netmask 255.255.255.0
     broadcast 192.9.2.255

iface eth2 inet6 static
     address 2001:db8:9:2::23
     netmask 64

# A more complicated ethernet setup: (the "up" lines are executed verbatim
# when the interface is brought up, the "down" lines when it's brought down)
#
# iface eth0 inet static
#     address 192.168.1.42
#     network 192.168.1.0
#     netmask 255.255.255.128
#     broadcast 192.168.1.0
#     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
#     up route add default gw 192.168.1.200
#     down route del default gw 192.168.1.200
#     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2

# An ethernet DHCP client: (using the dhcpcd .deb)
#
# iface eth0 inet dhcp

# A more complicated DHCP client: (hostname and leasetime match the options
# in the dhcpcd manpage)
#
# iface eth0 inet dhcp
#     hostname charisma
#     leasetime 3600

# A PCMCIA ethernet DHCP client:
#
# iface eth0 inet dhcp
#     noauto
#
# (note, this won't work unless you specifically change the file

