Provide Layer 2 Access to a Tenant - LEGACY
Instructions for using Virtual Switch Ports (formerly Virtual Wires) to provide VLAN-based Layer 2 network access to a tenant, including 1:1 and trunk mode configurations.
Newer Configuration Method
VergeOS 26.0 and later, consider using Tenant Layer 2 Networks for a simpler, more streamlined approach to providing Layer 2 access to tenants. This method automatically creates the necessary networks within the tenant environment.
High-Level Steps
Prepare the physical network: verify VLANs are configured on the appropriate physical switch ports so that they are accessible within the VergeOS environment.
VLANs 1 & 100-102 cannot be used in a Virtual Switch Port capacity. These VLANs are reserved for internal traffic. These IDs can, however, be remapped to other VLAN IDs for tenant consumption.
Create the Virtual Switch Port Determine whether the tenant will need access to a single VLAN or multiple VLANs. This will determine the Virtual Switch Port configuration:
To pass a single VLAN, use the Creating a 1:1 Virtual Switch Port instructions for each VLAN.
If the tenant requires access to more than 1 or 2 VLANs, it is typically best to use the Creating a Trunk Mode Virtual Switch Port directions.
Creating a 1:1 Virtual Switch Port
Ensure the VLAN(s) have been configured in the VergeOS UI. If not, follow the steps to create VLAN(s) here.
Select Networks and then Dashboard from the top menu to open the Networks Dashboard.
Select Virtual Switch Ports in the left menu to view all Virtual Switch Ports in the environment.
Select New to create the first half of the Virtual Switch Port:
Name: a descriptive name, e.g., VLAN from host, etc.
Network: the external network with the corresponding VLAN to pass to the tenant
Destination Wire: field should display --Empty List-- or select --None--
PVID: 1. Example Configuration:
Submit your changes and return to the Virtual Switch Ports list view.
Select New to create the second half of the Virtual Switch Port:
Name: a name to identify the wire such as vlan id, tenant, purpose, etc
Network: the tenant network, typically named
tenant_'$TENANTNAME'.Destination Wire: the other half of the Virtual Switch Port created above.
PVID: VLAN ID of the network being attached. Example Configuration:
Submit your changes.
Navigate to the Networks Dashboard, select Networks, and Apply Rules for both networks connected by the Virtual Switch Ports.
Creating a Trunk Mode Virtual Switch Port
Set the Physical Network to Bridge Mode
From the top menu, select Networks > List.
Double-click the Physical Network (NIC) that the VLANs are trunked to on the physical switch.
A physical Network typically has "Switch" appended to the name and represents a physical NIC on a node. You can filter the list of networks by "Type" to display only the physical networks.
Select Edit to enter the network configuration page.
In the configuration page, enable Physical Bridged to activate Bridge Mode. It is best to set the On Power Loss setting to Power On so that the network starts up automatically after a system power loss.
Submit your changes.
Reboot the necessary nodes for Bridge Mode to become active.
Follow proper Maintenance Mode procedures when rebooting a node to avoid workload disruptions.
Configuring a Trunk Mode Virtual Switch Port
Ensure the physical network is set to Bridged Mode and is powered on.
Navigate to Networks > Virtual Switch Ports.
Select New to create the first half of the Virtual Switch Port.
Name: identify the wire, e.g., "trunk from host"
Network: physical network with the corresponding VLAN to pass to the tenant.
Destination Wire: should display --Empty List-- or select --None--
PVID: 0
Allowed VLAN List: comma-delimited and with ranges as necessary Example Configuration:
Submit your configuration.
Select New to create the second half of the Virtual Switch Port.
Network dropdown, select the tenant network that the VLAN will be passed to, typically named
tenant_'$TENANTNAME'.PVID: 0
Allowed VLAN List: comma-delimited and with ranges as necessary Example Configuration:
Submit your changes.
Navigate to the Networks Dashboard, select Networks, and Apply Rules for both networks connected by the Virtual Switch Ports.
Add VLANs Inside the Tenant
Navigate to the tenant UI and log in.
Select Networks > + New External from the top menu.
Configure settings:
Name: a label to identify the network (name, vlan ids, purpose, etc.)
Layer 2 Type: VLAN
Layer 2 ID: VLAN ID
Interface Network: Physical
IP Address Type: None Example Configuration:
Submit your configuration.
Attach workloads to the network for Layer 2 access to networks outside VergeOS.
Troubleshooting Steps
Traffic is not reaching the virtual machine
Confirm firewall rules related to the Virtual Switch Port have been applied.
Verify the destination tenant network and VLAN network are in the "Running" state and reside on the same physical node.
Ensure VLANs are trunked to the correct physical node ports.
Last updated
Was this helpful?