ah yes, I missed it in the 1st post.
I just tried this, host:
auto bond0
iface bond0 inet manual
pre-up /usr/bin/teamd -d -o -g -t bond0 -f /etc/network/teamd-bond0.conf
post-down /usr/bin/teamd -k -t bond0
post-up ip link set bond0 up
auto lxcbr0
iface lxcbr0 inet manual
bridge_ports bond0
post-up ip link set lxcbr0 up
auto lxcbr0.1234
iface lxcbr0.1234 inet static
address 172.16.12.34
netmask 255.255.255.0
gateway 172.16.12.1
container:
lxc.net.0.type = vlan
lxc.net.0.vlan.id = 1234
lxc.net.0.link = lxcbr0
lxc.net.0.flags = up
lxc.net.0.ipv4.address = 172.16.12.56/24
lxc.net.0.ipv4.gateway = 172.16.12.1
but container doesn’t start.
Then I tried same config but with link = bond0, container starts and is reachable from outside the host server but it killed the connection to the hosts…