[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120329.181220.1671496234086192108.davem@davemloft.net>
Date: Thu, 29 Mar 2012 18:12:20 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: fubar@...ibm.com
Cc: wpan@...hat.com, netdev@...r.kernel.org, andy@...yhouse.net,
lwang@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] bonding: emit event when bonding changes MAC
From: Jay Vosburgh <fubar@...ibm.com>
Date: Thu, 29 Mar 2012 10:19:44 -0700
> Weiping Pan <wpan@...hat.com> wrote:
>
>>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@...hat.com>
>
> Signed-off-by: Jay Vosburgh <fubar@...ibm.com>
Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists