Hi,
I am struggling with VLANs when using bhyve.
I want to achieve a simple vlanned network where my virtual machine will communicate only through this VLAN; I do not want it to get out of it. Simple enough I thought....
On the bhyve server, the main interface (ix0) is already part of the public bridge.
I have setup my switches and router to accept the given VLAN. When I create an inteface (ix0.1) on the bhyve server, traffic comes and goes as it should; this validates my network path.
Now I try to connect my virtual machine to the VLAN. I simply create an isolated bridge and put the ix0.1 interface in it.
What I have tried:
Can someone guide me into achieving my goal?
Regards,
tcn
I am struggling with VLANs when using bhyve.
I want to achieve a simple vlanned network where my virtual machine will communicate only through this VLAN; I do not want it to get out of it. Simple enough I thought....
On the bhyve server, the main interface (ix0) is already part of the public bridge.
I have setup my switches and router to accept the given VLAN. When I create an inteface (ix0.1) on the bhyve server, traffic comes and goes as it should; this validates my network path.
Now I try to connect my virtual machine to the VLAN. I simply create an isolated bridge and put the ix0.1 interface in it.
What I have tried:
- Add a tap0 interface to the bridge.
- This makes the virtual machine see the interface and uses it. ARP requests reach destination; replies are sent back but never received by the interface. (tcpdump does not see the ARP replies at destination)
- Add a vlanned tap0.1 interface to the bridge.
- This is tricky as the virtual interface's MTU needs to be increased to 1504 in order to have tap0.1 keep the same MTU as the uplink interface. Creating a VLAN on a virtual adapter drops the MTU to 1496 and thus the new interface cannot be added to the bridge.
- After doing so, the virtual machine cannot see the interface as connected. It is a Windows machine and gives an unconnected status to the interface.
- I can't assign a VLAN to a bridge interface. I get a protocol unsupported error.
Can someone guide me into achieving my goal?
Regards,
tcn