root@myhost:~# cat /var/lib/lxc/vlan-263/config
lxc.include = /usr/share/lxc/config/ubuntu.common.conf
lxc.arch = x86_64
lxc.rootfs = /var/lib/lxc/vlan-263/rootfs
lxc.utsname = vlan-263
# This is the config of the LAN Interface
lxc.network.type = vlan
lxc.network.vlan.id = 263
lxc.network.flags = up
# next line is the physical link of the container-host
lxc.network.link = eth1
# next line is the name of the interface inside container
lxc.network.name = eth0
lxc.network.hwaddr = 02:00:00:00:02:63
How can I see that VLAN Interface (for VLAN 263) on the host? Ifconfig or ip a do not show it. Is it inside lxcbr0 or lxdbr0?
You can’t. With the config above, LXC has the kernel create an eth1.263 device on the host, then MOVE it inside the container’s network namespace. When that’s done, the interface is only visible inside the container.
In this setup, you’re not using lxcbr0/lxdbr0 at all, so they have no impact in your setup.
The tagging is directly handled by the Linux kernel, possibly even offloaded to the card itself.