diff options
author | Weiping Pan <wpan@redhat.com> | 2012-03-27 19:18:24 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-29 18:11:57 -0400 |
commit | 7d26bb103c4162003bfdf1d63aaa32b548ad0e9a (patch) | |
tree | 010e8c9e49ed2700ad2bd726cb5835392058b610 /arch/x86 | |
parent | 3b9785c6b0ff37ac4ef5085b38756283da84dceb (diff) | |
download | linux-stable-7d26bb103c4162003bfdf1d63aaa32b548ad0e9a.tar.gz linux-stable-7d26bb103c4162003bfdf1d63aaa32b548ad0e9a.tar.bz2 linux-stable-7d26bb103c4162003bfdf1d63aaa32b548ad0e9a.zip |
bonding: emit event when bonding changes MAC
When a bonding device is configured with fail_over_mac=active,
we expect to see the MAC address of the new active slave as the source MAC
address after failover. But we see that the source MAC address is the MAC
address of previous active slave.
Emit NETDEV_CHANGEADDR event when bonding changes its MAC address, in order
to let arp_netdev_event flush neighbour cache and route cache.
How to reproduce this bug ?
-----------hostB----------------
hostA ----- switch ---|-- eth0--bond0(192.168.100.2/24)|
(192.168.100.1/24 \--|-- eth1-/ |
--------------------------------
1 on hostB,
modprobe bonding mode=1 miimon=500 fail_over_mac=active downdelay=1000
num_grat_arp=1
ifconfig bond0 192.168.100.2/24 up
ifenslave bond0 eth0
ifenslave bond0 eth1
then eth0 is the active slave, and MAC of bond0 is MAC of eth0.
2 on hostA, ping 192.168.100.2
3 on hostB,
tcpdump -i bond0 -p icmp -XXX
you will see bond0 uses MAC of eth0 as source MAC in icmp reply.
4 on hostB,
ifconfig eth0 down
tcpdump -i bond0 -p icmp -XXX (just keep it running in step 3)
you will see first bond0 uses MAC of eth1 as source MAC in icmp
reply, then it will use MAC of eth0 as source MAC.
Signed-off-by: Weiping Pan <wpan@redhat.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions