Stephan von Krawczynski
2013-Aug-22 20:44 UTC
[Bridge] Can linux kernel bridge forward 802.1q tagged vlan packets?
Hello all, first it seemed a trivial question to me, but since I could not find anybody being neither able to answer this question nor giving a short config example I'd like to ask here, maybe this is the right place. My general idea is to bridge tagged vlan packets from a physical interface (intel) to a virtual interface (virtio in qemu) and not losing the tags, so the qemu guest can use vconfig and friends to get some vlan interfaces. Is this possible and are there any additional steps necessary besides the usual bridge configuration? What bothers me especially is the vlan filtering done by nics which can prevent to even receive the packets from the LAN. And on the other side of course can the bridge code forward packets including tags so that virtio is able to handle them? -- Regards, Stephan
Marek Kierdelewicz
2013-Aug-22 21:49 UTC
[Bridge] Can linux kernel bridge forward 802.1q tagged vlan packets?
Hi,>My general idea is to bridge tagged vlan packets from a physical >interface (intel) to a virtual interface (virtio in qemu) and not >losing the tags, so the qemu guest can use vconfig and friends to get >some vlan interfaces. Is this possible and are there any additional >steps necessary besides the usual bridge configuration?I'm using this setup with KVM virtualization (Qemu's successor). It didn't work with default nic type for guest (realtek I think) as 802.1q tags were not preserved properly in one of the directions. I don't remember specifics. Anyway using e1000 driver instead of default fixed it. Works like a charm. Best regards, Marek Kierdelewicz