All pastes #166016 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-09-10 13:46 UTC
rendered paste body
# The loopback network interface
auto lo
iface lo inet loopback
        #up echo 0 > /proc/sys/net/ipv6/conf/all/autoconf

# The primary network interface
auto eth1
#iface eth1 inet dhcp
iface eth1 inet static
        pre-up echo 0 > /proc/sys/net/ipv6/conf/eth1/autoconf
        address 10.102.221.64
        netmask 255.0.0.0
        network 10.0.0.0
        broadcast 10.255.255.255
        gateway 10.102.221.1

# The secondary network interface (gbit), plugged in same switch
# io should be a different direction.
auto eth0
iface eth0 inet static
        pre-up echo 0 > /proc/sys/net/ipv6/conf/eth0/autoconf
        address 10.102.221.65
        netmask 255.0.0.0
        network 10.0.0.0
        broadcast 10.255.255.255
        # Traffic to/from aardbei should be on this interface
        # So, you'll have to add a static ARP entry, because
        # there is no way it works from here... :-/
        # (not metric, not gw, not an extra route entry to aardbei)
        # We need this as well as the static entry on the other
        # side because otherwise the traffic will get out on the
        # wrong interface.
        up route add -host aardbei dev eth0