cisco Catalyst 9300 — Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port

Procedure Configuring Private VLANs Configuring a Layer 2 Interface as a Private VLAN Promiscuous Port 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 interface interface-id Example: Device(config)# interface gigabitethernet1/0/2 Enters interface configuration mode for the Layer 2 interface to be configured. Step 4 switchport mode private-vlan promiscuous Example: Device(config-if)# switchport mode private-vlan promiscuous Configures the Layer 2 port as a private VLAN promiscuous port.

Step 5 switchport private-vlan mapping primary vlan id {add | remove} _ _ secondary vlan list _ _ Example: Device(config-if)# switchport private-vlan mapping 20 add 501-503 Maps the private VLAN promiscuous port to a primary VLAN and to selected secondary VLANs. • The secondary vlan list parameter cannot _ _ contain spaces. It can contain multiple comma-separated items. Each item can be a single private VLAN ID or a hyphenated range of private VLAN IDs. • Enter a secondary vlan list, or use the _ _ add keyword with a secondary vlan list _ _ to map the secondary VLANs to the private VLAN promiscuous port.

• Use the remove keyword with a secondary vlan list to clear the mapping _ _ between secondary VLANs and the private VLAN promiscuous port. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 81