* Re: [Bugme-new] [Bug 14586] New: bridge on bonding interface: DHCP replies don't get through
[not found] <bug-14586-10286@http.bugzilla.kernel.org/>
@ 2009-11-12 22:39 ` Andrew Morton
2009-11-12 22:55 ` Stephen Hemminger
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2009-11-12 22:39 UTC (permalink / raw)
To: Stephen Hemminger, bridge
Cc: bugzilla-daemon, bugme-daemon, netdev, harald.dunkel
(switched to email. Please respond via emailed reply-to-all, not via the
bugzilla web interface).
On Wed, 11 Nov 2009 14:28:00 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=14586
>
> Summary: bridge on bonding interface: DHCP replies don't get
> through
> Product: Networking
> Version: 2.5
> Kernel Version: 2.6.31.5
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: Other
> AssignedTo: acme@ghostprotocols.net
> ReportedBy: harald.dunkel@t-online.de
> Regression: No
>
>
> I would like to run a bridge for kvm on a bonding interface (4 * 1Gbit, Intel
> e1000e). Problem: The DHCPDISCOVER packets sent by the guest show up on my dhcp
> server as expected, but the DHCPOFFER sent as a reply doesn't reach the guest
> behind the bridge.
>
> Using tcpdump on host and guest I can see the DHCPOFFER on the bond0 and br0
> interface, but it never shows up on vnet0 or on the guest's eth0.
>
> If I drop the bonding interface and use the host's eth2 for the bridge instead,
> then there is no such problem.
>
> Kernel on host and guest is 2.6.31.5. Attached you can find more information
> about my setup.
>
> I had sent this information to the linux kvm mailing list before, but consensus
> was that this is a bridging problem. See
>
> http://www.spinics.net/lists/kvm/msg25153.html
>
> There was no reply on the linux bridge mailing list, see
>
>
> https://lists.linux-foundation.org/pipermail/bridge/2009-November/006749.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bugme-new] [Bug 14586] New: bridge on bonding interface: DHCP replies don't get through
2009-11-12 22:39 ` [Bugme-new] [Bug 14586] New: bridge on bonding interface: DHCP replies don't get through Andrew Morton
@ 2009-11-12 22:55 ` Stephen Hemminger
2009-11-13 3:23 ` Andy Gospodarek
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2009-11-12 22:55 UTC (permalink / raw)
To: harald.dunkel
Cc: Andrew Morton, bridge, bugzilla-daemon, bugme-daemon, netdev
>
> I would like to run a bridge for kvm on a bonding interface (4 * 1Gbit, Intel
> e1000e). Problem: The DHCPDISCOVER packets sent by the guest show up on my dhcp
> server as expected, but the DHCPOFFER sent as a reply doesn't reach the guest
> behind the bridge.
>
> Using tcpdump on host and guest I can see the DHCPOFFER on the bond0 and br0
> interface, but it never shows up on vnet0 or on the guest's eth0.
>
> If I drop the bonding interface and use the host's eth2 for the bridge instead,
> then there is no such problem.
>
> Kernel on host and guest is 2.6.31.5. Attached you can find more information
> about my setup.
>
What is the configuration?
# brctl showstp virbr0
# brctl showmacs virbr0
Is dhclient being run on the bridge interface?
# cat /proc/net/ptype
# cat /proc/net/bonding/bond0
How is bond and bridge configured? Are bonding bridges (wrong)
or bridging bonded interfaces?
Are all links up?
Since this is the initial packet it will have to be flood forwarded by
the bridge, is there any iptables/netfilter rule that might be blocking
packets?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bugme-new] [Bug 14586] New: bridge on bonding interface: DHCP replies don't get through
2009-11-12 22:55 ` Stephen Hemminger
@ 2009-11-13 3:23 ` Andy Gospodarek
0 siblings, 0 replies; 3+ messages in thread
From: Andy Gospodarek @ 2009-11-13 3:23 UTC (permalink / raw)
To: Stephen Hemminger
Cc: harald.dunkel, Andrew Morton, bridge, bugzilla-daemon,
bugme-daemon, netdev
On Thu, Nov 12, 2009 at 02:55:29PM -0800, Stephen Hemminger wrote:
> >
> > I would like to run a bridge for kvm on a bonding interface (4 * 1Gbit, Intel
> > e1000e). Problem: The DHCPDISCOVER packets sent by the guest show up on my dhcp
> > server as expected, but the DHCPOFFER sent as a reply doesn't reach the guest
> > behind the bridge.
> >
> > Using tcpdump on host and guest I can see the DHCPOFFER on the bond0 and br0
> > interface, but it never shows up on vnet0 or on the guest's eth0.
> >
> > If I drop the bonding interface and use the host's eth2 for the bridge instead,
> > then there is no such problem.
> >
> > Kernel on host and guest is 2.6.31.5. Attached you can find more information
> > about my setup.
> >
>
> What is the configuration?
> # brctl showstp virbr0
> # brctl showmacs virbr0
>
I'm quite sure this output will show us why this isn't working and it
won't be the first time I've seen this.
What happens with mode 0 is that the DHCPDISCOVER goes out and since the
MAC is unlearned by the switch connected to the host, the frame will
come back on all other members of the bond other than the one that sent
it.
Since the bond interface is receiving the frame, the bridge will relearn
the source address of the guest on the bonding interface and any
subsequent frames received on the bond interface that have the
destination MAC of the guest will be dropped by the bridge. This is as
expected since a bridge should drop frames when the destination MAC of
the incoming frame matches an entry in the forwarding database that
indicates those frames are destined for the receiving port.
I would suggest switching to mode 5 (balance-tlb) if your switch cannot
handle bonding or mode 2 or 4 (balance-xor or 802.3ad, respectively) if
it can. Both of those modes avoid this problem since mode 5 will drop
additional broadcast frames and modes 2 and 4 will not send broadcast
frames back to any of the bond member's interfaces.
There is a Red Hat kbase article that talks about this problem as well:
http://kbase.redhat.com/faq/docs/DOC-16051
When it was originally written mode 6 was thought to be a workaround
as well, but it has been recently proved to still be a problem and the
article needs to be updated.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-11-13 3:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <bug-14586-10286@http.bugzilla.kernel.org/>
2009-11-12 22:39 ` [Bugme-new] [Bug 14586] New: bridge on bonding interface: DHCP replies don't get through Andrew Morton
2009-11-12 22:55 ` Stephen Hemminger
2009-11-13 3:23 ` Andy Gospodarek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).