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.
Prerequisites
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.
Procedure
- On the vSphere Client Home page, click Networking and navigate to the distributed switch.
- Navigate to the VLAN policy on the distributed port group or distributed port.
Option Action Distributed port group - From the Actions menu, select .
- Select VLAN and click Next.
- Select the port group and click Next.
Distributed port - 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 VLAN.
- 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.
Option Description None Do not use VLAN. Use this option in case of External Switch Tagging.
VLAN Tag traffic with the ID from the VLAN ID field. Type a number between 1 and 4094 for Virtual Switch Tagging.
VLAN Trunking 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. For example: 1702-1705, 1848-1849. Use this option for Virtual Guest Tagging.
Private VLAN Associate the traffic with a private VLAN created on the distributed switch. - Review your settings and apply the configuration.