LXC - attach container to different VLAN

I have configured 2 VLANS. Is there a way to move LXC network to the second one? I tried edit in debian container /etc/network/interfaces to something like that:

auto eth0.2
iface eth0.2 dhcp

But I’m still getting IP address from the first vlan.


Point lxc.network.link = br-lan in lxc config to the correct bridge?

Thanks, I got it work.

I have to add option type 'bridge' to the second lan interface.

just wonder is option force_link '1' needed in the second lan interface?