netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IP-less bridge as a martian source
@ 2008-10-21 12:06 Ferenc Wagner
  2008-10-22 15:00 ` Ferenc Wagner
  0 siblings, 1 reply; 16+ messages in thread
From: Ferenc Wagner @ 2008-10-21 12:06 UTC (permalink / raw)
  To: netdev; +Cc: wferi

Hi,

I expected an IP-less bridge interface to pick up no IP packets, but
apparently this isn't the case: broadcast packets with destination
address 255.255.255.255 are reported as martians by the 2.6.18
kernel, which I find counterintuitive (I know 2.6.18 is rather old,
but that's the one supported by Xen).

  1. Is this the expected behaviour?

  2. I tried to cut down the logs by explicit iptables drops, but
     didn't succeed.  Does martian detection happen before the
     netfilter rules?  (I know I can disable martian logging by
     interface, but wanted finer granularity.)

If somebody could also enlighten me on the following, I'd be very
grateful.  My setup consists of two Xen hosts, both with two physical
Ethernet interfaces aggregated into active-backup bonds.  There are
several .1q VLAN interfaces built on the bonds, which are put into
per-VLAN bridges.  The virtual interfaces of the Xen guest machines
are also put into these bridges, so each virtual interface sees the
native traffic of the corresponding VLAN.

In a specific scenario, I've got two guests running on different
hosts, connecting to VLAN 891:

xen2:~# brctl show
bridge name	bridge id		STP enabled	interfaces
br891		8000.00065b8e7272	no		vlan891
							vif5.0
xen1:~# brctl show
bridge name	bridge id		STP enabled	interfaces
br891		8000.00065b8e71d5	no		vif12.0
							vlan891

If I issue the ping -c1 -b 255.255.255.255 on either Xen guest
(remember, they are running on different hosts), the xen2 host logs
one martian packet "on dev br891", while the xen1 host logs two!

  3. Can anybody explain this? :)

I'm experiencing other strange things (like ARP replies sometimes not
getting through the bridges), but let's start with the above...

(Please Cc me, I'm not on the list.)
-- 
Thanks,
Feri.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-11-07 10:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21 12:06 IP-less bridge as a martian source Ferenc Wagner
2008-10-22 15:00 ` Ferenc Wagner
2008-10-22 17:22   ` Jarek Poplawski
2008-10-22 17:36     ` Jarek Poplawski
2008-10-22 19:10     ` Jarek Poplawski
2008-10-29 16:56       ` Ferenc Wagner
2008-10-31  8:41         ` Jarek Poplawski
2008-11-01 23:55           ` Ferenc Wagner
2008-11-05  9:43             ` Jarek Poplawski
2008-11-05 10:30               ` Ferenc Wagner
2008-11-05 11:26                 ` Ferenc Wagner
2008-11-06 10:00                 ` Jarek Poplawski
2008-11-06 12:00                   ` Ferenc Wagner
2008-11-06 13:15                     ` Jarek Poplawski
2008-11-06 14:31                       ` Ferenc Wagner
2008-11-07 10:19                         ` Jarek Poplawski

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).