To apply VLAN tagging globally on all distributed ports, you must set the VLAN policy on a distributed port group. To integrate the virtual traffic on the port with physical VLANs in a different way from the parent distributed port group, you must use the VLAN policy on a distributed port.
To override a policy on distributed port level, enable the port-level override option for this policy. See Configure Overriding Networking Policies on Port Level.
- In the vSphere Web Client, navigate to the distributed switch.
- Navigate to the VLAN policy on the distributed port group or distributed port.
Distributed port group
From the Actions menu, select .
Select VLAN and click Next.
Select the port group and click Next.
On the Networks tab, click Distributed Port Groups and double-click a distributed port group.
On the Ports tab, select a port and click the Edit distributed port settings icon.
Select Override next to the properties to override.
- From the VLAN type drop-down menu, select the type of VLAN traffic filtering and marking, and click Next.
Do not use VLAN.
Use this option in case of External Switch Tagging.
Tag traffic with the ID from the VLAN ID field.
Type a number between 1 and 4094 for Virtual Switch Tagging.
Pass VLAN traffic with ID within the VLAN trunk range to guest operating system. You can set multiple ranges and individual VLANs by using a comma-separated list.
Use this option for Virtual Guest Tagging.
Associate the traffic with a private VLAN created on the distributed switch.
- Review your settings and apply the configuration.