[lxc-users] double-tagged-VLAN via VETH bridge

c.buettner at avm.de c.buettner at avm.de
Mon Sep 7 14:04:31 UTC 2015


Hello,

are there any restrictions using double tagged VLAN in LXC containers?

My container network setup looks like this:
lxc.network.type = veth
lxc.network.link = br0


My VLAN-setup inside the container looks like this:
#!/bin/bash
INTERFACE=eth0
ip link add link ${INTERFACE} ${INTERFACE}.7 type vlan proto 802.1q id 7
ip link add link ${INTERFACE}.7 ${INTERFACE}.7.2 type vlan proto 802.1q id 
2
ifconfig ${INTERFACE} up          ifconfig ${INTERFACE}.7 up
ifconfig ${INTERFACE}.7.2 up


I can see that RX-traffic is routed successfully to my eth0.7.2 device, 
but TX traffic only carries VLAN-tag 7.
Whenever I use the same configuration with 'lxc.network.type = pyhs' it 
works just fine.

Regards Christoph



Christoph Büttner
Tel.: +49 30 399 76 286
Fax.: +49 30 399 76 255
E-Mail: c.buettner at avm.de
http://www.avm.de

AVM Audiovisuelles Marketing und Computersysteme GmbH
Alt-Moabit 95, 10559 Berlin
HRB 23075 AG Charlottenburg
Geschäftsführer: Johannes Nill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150907/6d7dc909/attachment.html>


More information about the lxc-users mailing list