Comment 0 for bug 736226

Revision history for this message
Leonardo Borda (lborda) wrote :

Binary package hint: ifenslave-2.6

Description: Ubuntu 10.04.2 LTS
Release: 10.04

ifenslave-2.6:
  Installed: 1.1.0-14ubuntu2.1
  Candidate: 1.1.0-14ubuntu2.1
  Version table:
 *** 1.1.0-14ubuntu2.1 0
        500 http://ca.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1.1.0-14ubuntu2 0
        500 http://ca.archive.ubuntu.com/ubuntu/ lucid/main Packages

Overview:

Bonding + bridge does not work when bonding mode is set to active-backup and arp monitoring is enabled. (bond_arp_ip_target and bond_arp_interval)

Reproducible: 100%

1. Install ifenslave
$ sudo apt-get install ethtool

2. Install bridge utils
$ sudo apt-get install bridge-utils

3. Use the following /etc/network/interfaces sample.
auto lo
iface lo inet loopback

auto bond0
iface bond0 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bond-slaves none
    bond-mode active-backup
    bond_arp_ip_target 10.153.107.1
    bond_arp_interval 100

auto eth0
allow-bond0 eth0
iface eth0 inet manual
    bond-master bond0

auto eth1
allow-bond0 eth1
iface eth1 inet manual
    bond-master bond0

auto bond0.100
iface bond0.100 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    vlan-raw-device bond0

auto bond0.200
iface bond0.200 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    vlan-raw-device bond0

auto br0
iface br0 inet static
    address 10.153.107.110
    netmask 255.255.255.0
    gateway 10.153.107.1
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

auto br0-100
iface br0-100 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bridge_ports bond0.100
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

auto br0-200
iface br0-200 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bridge_ports bond0.200
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

Reboot the server. You won't be able to ping the br0 interface anymore.

Workaround:

Disable bond_arp_ip_target and bond_arp_interval and use MII monitoring. As follow below:

auto lo
iface lo inet loopback

auto bond0
iface bond0 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bond-slaves none
    bond-mode active-backup
    bond_arp_ip_target 10.153.107.1
    bond_arp_interval 100

auto eth0
allow-bond0 eth0
iface eth0 inet manual
    bond-master bond0

auto eth1
allow-bond0 eth1
iface eth1 inet manual
    bond-master bond0

auto bond0.100
iface bond0.100 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    vlan-raw-device bond0

auto bond0.200
iface bond0.200 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    vlan-raw-device bond0

auto br0
iface br0 inet static
    address 10.153.107.110
    netmask 255.255.255.0
    gateway 10.153.107.1
    bridge_ports bond0
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

auto br0-100
iface br0-100 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bridge_ports bond0.100
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

auto br0-200
iface br0-200 inet manual
    post-up ifconfig $IFACE up
    pre-down ifconfig $IFACE down
    bridge_ports bond0.200
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: ifenslave-2.6 1.1.0-14ubuntu2.1
ProcVersionSignature: Ubuntu 2.6.32-29.58-server 2.6.32.28+drm33.13
Uname: Linux 2.6.32-29-server x86_64
Architecture: amd64
Date: Wed Mar 16 12:10:55 2011
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ifenslave-2.6