Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port Follow these steps to configure a Layer 2 interface as a private VLAN promiscuous port and map it to primary and secondary VLANs: Isolated and community VLANs are both secondary VLANs. Note Configuring Private VLANs Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port Command or Action Purpose Step 4 switchport mode private-vlan host Example: Device(config-if)# switchport mode private-vlan host Configures the Layer 2 port as a private-VLAN host port. Step 5 switchport private-vlan host-association primary vlan id secondary vlan id _ _ _ _ Example:
Device(config-if)# switchport private-vlan host-association 20 501 Associates the Layer 2 port with a private VLAN. Note This is a required step to associate the PVLAN to a Layer 2 interface. Step 6 end Example: Device(config)# end Returns to privileged EXEC mode. Step 7 show interfaces [interface-id] switchport Example: Device# show interfaces gigabitethernet1/0/22 switchport Verifies the configuration. Step 8 copy running-config startup-config Example: Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 80