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.

1

In the vSphere Web Client, navigate to the distributed switch.

2

Navigate to the VLAN policy on the distributed port group or distributed port.

Option

Action

Distributed port group

a

From the Actions menu, select Distributed Port Group > Manage Distributed Port Groups.

b

Select VLAN.

c

Select the port group and click Next.

Distributed port

a

Select Related Object, and select Distributed Port Groups.

b

Select a distributed port group.

c

Under Manage select Ports.

d

Select a port and click Edit distributed port settings.

e

Select VLAN.

f

Select Override next to the properties to override.

3

From the 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.

Use this option for Virtual Guest Tagging.

Private VLAN

Associate the traffic with a private VLAN created on the distributed switch.

4

Review your settings and apply the configuration.