See Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port Step 5 If inter-VLAN routing will be used, configure the primary SVI, and map secondary VLANs to the primary. See Mapping Secondary VLANs to a Primary VLAN Layer 3 VLAN Interface Step 6 Verify private-VLAN configuration. Configuring and Associating VLANs in a Private VLAN The private-vlan commands do not take effect until you exit VLAN configuration mode. To configure and associate VLANs in a Private VLAN, perform these steps: Procedure Configuring Private VLANs Configuring and Associating VLANs in a Private VLAN Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode.
Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 vtp mode transparent Example: Device(config)# vtp mode transparent Sets VTP mode to transparent (disable VTP). Note For VTP3, you can set mode to either server or transparent mode Step 4 vlan vlan-id Example: Device(config)# vlan 20 Enters VLAN configuration mode and designates or creates a VLAN that will be the primary VLAN. The VLAN ID range is 2 to 1001 and 1006 to 4094. Step 5 private-vlan primary Example: Device(config-vlan)# private-vlan primary Designates the VLAN as the primary VLAN. Step 6 exit Example: Returns to global configuration mode.
VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 76