I have set up two LXD containers. I used macvlan to give each of these containers a separate virtual mac address. Originally, the containers and the host computer were all on the same subnet.
Now I am thinking that I would like to have the LXD containers on a separate VLAN than the main computer that these containers live in. Is this possible? It seems weird that it would be since the virtual adapters connect via a bridge with the physical adapter in the host computer.
Thank you for the suggestion. I tried doing that, but it doesn’t seem to work. In this setup, does the host have to be configured to be on a VLAN?
At the moment, I have my host interface enp39s0 on the 192.168.0.1 subnet. This is not a VLAN. I then have the two LXD containers. I configured two separate profiles: macvlan (for the container that will be on the same subnet as the host) and macvlan-vnet10 (for the container that I want to be on the vlan 10).