Configuring Private VLANs Configuring a Layer 2 Interface as a Promiscuous Private VLAN Trunk Port on a Portchannel Command or Action Purpose Device(config-if)# switchport mode private-vlan trunk promiscuous 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 501-503 Maps the private VLAN promiscuous 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 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. Step 5 switchport private-vlan trunk allowed vlan { word | add |all | except |none | remove } vlan list _ Example: Device(config-if)# switchport private-vlan trunk allowed vlan 20 Configures a list of allowed VLANs on a PVLAN trunk port. The list must include primary VLANs. In addition, normal VLANs can be configured as well.
You can use the no keyword to remove all allowed VLANs on a promiscuous private VLAN trunk port. Step 6 channel-group channel group number mode { active | auto | desirable | on | passive } Example: Device(config-if)# channel-group 1 mode active Configures the port in a channel group and sets the mode. The channel-number range is from 1 to 128. The port channel associated with this channel group is automatically created if the port channel does not already exist. Step 7 end Example: Device(config)# end Returns to privileged EXEC mode. Step 8 show etherchannel summary Example: Verifies the configuration. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 88