RE: Issue with Vlans and bridges

"James Harper" <[email protected]> Sun, 16 Jul 2006 12:45:12 +1000
Newsgroups gmane.linux.drivers.vlan
Message-ID <AEC6C66638C05B468B556EA548C1A77DCECDBD@trantor>
> Hi,
> 
> I have been looking at this and on eth3 I see this
> 
> 17:10:25.355276 vlan 40, p 0, IP 135.196.XXX.XX.5000 >
192.168.40.88.5000:
> UDP, length 11
> 17:10:26.014292
> 17:10:26.371019 IP 135.196.XXX.XX.5000 > 192.168.20.30.5000: UDP,
length
> 11
> 17:10:26.371446 IP 192.168.20.30.5000 > 135.196.XXX.XX.5000: UDP,
length
> 10
> 
> I still do not understand why the packets do not go over the correct
vlan
> interfaces and bridge.
> 

(I haven't followed all of this thread so apologies if it's already been
covered)

You do have the correct brouting rules in place don't you? eg:

ebtables -t broute -A BROUTING -p 802_1Q -i eth0 -j DROP

This makes sure that the 802.1q tagged packets coming in on eth0 are not
sent over the bridge as is, but are 'routed' internally to the vlan
code, where they are decapsulated and then maybe routed to bridges.

James