I have an Arch machine with LXC. I have a trunk connection eth1.
I would like to connect one of my LXC containers (Ubuntu 18.04) to VLAN 11.
I created an interface named vlan11 with netctl bonded to eth1 like this:
I created a bridge called lxcbr11 bonded to vlan11:
Finally I set this in the container’s config:
lxc.net.1.type = veth
lxc.net.1.name = eth1
lxc.net.1.flags = up
lxc.net.1.link = lxcbr11
lxc.net.1.hwaddr = 00:15:5e:xx:xx:xx
My problem is the container does not get an ip address on eth1. The host does get an ip address on lxcbr11.
My Arch server also has an eth0 interface (it is an Access port, not a Trunk). I created a bridge named lxcbr0 bonded to eth0 and connected the container to that. The container has an interface connected to lxcbr0 and it does get an ip address on it.
So everything is working except the containers’s interface connected to the vlan interface. Can someone help to make it work?