Bonding interfaces in Lenny - Lost gateway

Discussion in 'Installation/Configuration' started by jmuz, Nov 16, 2009.

  1. jmuz

    jmuz New Member

    Running Debian 5.0.3, running into issue where upon reboot the bond0 gateway configuration from /etc/network/interfaces is not utilized.

    My config: /etc/network/interfaces
    auto bond0
    iface bond0 inet static
    address 10.1.100.20
    netmask 255.255.0.0
    network 10.1.0.0
    gateway 10.1.100.1
    broadcast 10.1.255.255
    up /sbin/ifenslave bond0 eth0 eth1
    down /sbin/ifenslave -d bond0 eth0 eth1

    /etc/modprobe.d/arch/i386
    alias bond0 bonding
    options bonding mode=1 miimon=100 downdelay=200 updelay=200

    I've added a workaround that applies a default route using bond0 to direct traffic to the default gateway and applied to the rc files. I would like to eliminate this workaround - please advise if anyone has encountered a similar issue.

    Thanks,
     
  2. kn

    kn Banned

    Hi,

    why do you use a netmask "255.255.0.0"? are you on a supernet or another class?

    normally under lenny there is no need to add these things:

    up /sbin/ifenslave bond0 eth0 eth1
    down /sbin/ifenslave -d bond0 eth0 eth1

    /etc/modprobe.d/arch/i386
    alias bond0 bonding
    options bonding mode=1 miimon=100 downdelay=200 updelay=200

    REMOVE all the entries made above

    try this and it will work, and i will use a 3x 255 subnet/netmask and use a class c ip address in this example.

    auto bond0
    iface bond0 inet static
    address 10.1.100.20
    netmask 255.255.255.0
    network 10.1.100.0
    gateway 10.1.100.1
    broadcast 10.1.100.255
    bond_mode balance-tlb
    bond_miimon 100
    bond_downdelay 200
    bond_updelay 200
    slaves eth0 eth1
     

Share This Page