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

Configuring a Layer 2 Interface as a Promiscuous Private VLAN Trunk Port To configure a Layer 2 interface as a promiscuous private VLAN trunk port, perform this task: Procedure Configuring Private VLANs Configuring a Layer 2 Interface as a Promiscuous Private VLAN Trunk Port Command or Action Purpose Step 1 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 2 interface interface-id Example: Device(config)# interface gigabitethernet1/0/2 Enters interface configuration mode for the Layer 2 interface to be configured. Step 3 switchport mode private-vlan { host | promiscuous | trunk promiscuous | trunk [secondary]} Example:

Device(config-if)# switchport mode private-vlan trunk promiscuous Configures the Layer 2 port as a promiscuous private VLAN trunk port. Step 4 switchport private-vlan mapping trunk primary vlan id [add | remove] _ _ secondary vlan list _ _ Example: Device(config-if)# switchport private-vlan mapping trunk 20 add 501-503 Maps the promiscuous private VLAN trunk 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 promiscuous private VLAN trunk port. • Use the remove keyword with a secondary vlan list to clear the mapping _ _ between secondary VLANs and the promiscuous private VLAN trunk port. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 84