VLANs
Virtual LANs (VLANs) allow you to segment your network traffic at Layer 2, isolating different groups of Virtual Machines or host interfaces even if they share the same physical infrastructure.
Configuring VLANs on Physical Interfaces
If your upstream physical switch is configured to pass tagged VLAN traffic (a trunk port) to the host, you can create VLAN interfaces in Vapor to untag that traffic for specific uses.
- Navigate to Network > VLANs.
- Click Create VLAN.
- Select the Parent Interface (e.g.,
eth0or a Bond). - Enter the VLAN ID (a number between 1 and 4094).
- Vapor will create a sub-interface (e.g.,
eth0.10for VLAN 10).
This new VLAN interface can now be treated like any other physical interface: you can assign it an IP address, or attach it to a Bridge to isolate VM traffic.
VLANs in Open vSwitch (OVS)
If you are using OVS, VLAN tagging is typically handled at the port level rather than creating sub-interfaces.
When you attach a VM's virtual interface to an OVS bridge, you can define its VLAN tag directly in the VM's network settings. OVS will automatically handle tagging and untagging the traffic as it enters and leaves the virtual switch.