• Use only the private VLAN configuration commands to assign ports to primary, isolated, or community VLANs. Layer 2 access ports assigned to the VLANs that you configure as primary, isolated, or community VLANs are inactive while the VLAN is part of the private VLAN configuration. Layer 2 trunk interfaces remain in the STP forwarding state. • Do not configure ports that belong to a PAgP or LACP EtherChannel as private VLAN ports. While a port is part of the private VLAN configuration, any EtherChannel configuration for it is inactive. • Enable Port Fast and BPDU guard on isolated and community host ports to prevent STP loops due to misconfigurations and to speed up STP convergence.
When enabled, STP applies the BPDU guard feature to all Port Fast-configured Layer 2 LAN ports. Do not enable Port Fast and BPDU guard on promiscuous ports. • If you delete a VLAN used in the private VLAN configuration, the private VLAN ports associated with the VLAN become inactive. • Private VLAN ports can be on different network devices if the devices are trunk-connected and the primary and secondary VLANs have not been removed from the trunk. How to Configure Private VLANs The following sections provide information about configuring Private VLANs: Configuring Private VLANs To configure a private VLAN, perform these steps:
Private vlans are supported in transparent mode for VTP 1, 2 and 3. Private VLANS are also supported on server mode with VTP 3. Note Procedure Step 1 Set VTP mode to transparent Note Note: For VTP3, you can set mode to either server or transparent mode. Step 2 Create the primary and secondary VLANs and associate them. See Configuring and Associating VLANs in a Private VLAN Note If the VLAN is not created already, the private-VLAN configuration process creates it. Step 3 Configure interfaces to be isolated or community host ports, and assign VLAN membership to the host port.
See Configuring a Layer 2 Interface as a Private VLAN Host Port Step 4 Configure interfaces as promiscuous ports, and map the promiscuous ports to the primary-secondary VLAN pair. Configuring Private VLANs How to Configure Private VLANs VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 75