Create the necessary private VLANs on the vSphere Distributed Switch to be able to assign distributed ports to participate to a private VLAN.

Procedure

  1. In the vSphere Web Client, navigate to the distributed switch.
  2. On the Configure tab, expandSettings and select Private VLAN .
  3. Click Edit.
  4. To add a primary VLAN, under Primary VLAN ID click Add and enter the ID of a primary VLAN.
  5. Click the plus sign (+) in front of the primary VLAN ID to add it to the list.
    The primary private VLAN also appears under Secondary Private VLAN ID.
  6. To add a secondary VLAN, in the right pane click Add and enter the ID of the VLAN.
  7. Click the plus sign (+) in front of the secondary VLAN ID to add it to the list.
  8. From the drop-down menu in the Secondary VLAN type column, select either Isolated or Community.
  9. Click OK.

What to do next

Configure a distributed port group or port to associate traffic with the private VLAN. See Configure VLAN Tagging on a Distributed Port Group or Distributed Port.