Procedure Configuring Private VLANs Configuring a Layer 2 Interface as an Isolated Private VLAN Trunk Port on a Portchannel Command or Action Purpose Step 1 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 2 interface interface range Example: Device(config)# int range g5/0/17, g5/0/22, g6/0/12 Enters interface configuration mode for the Layer 2 interface range to be configured. Step 3 switchport mode private-vlan { host | promiscuous | trunk promiscuous | trunk [secondary]} Example: Device(config-if)# switchport mode private-vlan trunk Configures the Layer 2 interface range as a private VLAN isolated trunk port.
Step 4 switchport private-vlan association trunk primary vlan id secondary vlan id _ _ _ _ Example: Device(config-if)# switchport private-vlan association trunk 20 503 Maps the private VLAN trunk port to a primary VLAN and to the selected secondary VLAN. 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 an isolated 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. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 86