cisco Catalyst 9300 — Example: Configuring a Layer 2 Interface as a Promiscuous Private VLAN Trunk Port on a Portchannel

Device# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Device(config)# interface range g5/0/17, g5/0/22, g6/0/12 Device(config-if-range)# switchport mode private-vlan trunk Device(config-if-range)# switchport private-vlan trunk allowed vlan 20 Device(config-if-range)# switchport private-vlan association trunk 20 503 Device(config-if-range)# channel-group 1 mode active Device(config-if-range)# end Device# show etherchannel summary Dec 10 13:51:28.423 PST: %SYS-5-CONFIG_I: Configured from console by consolesumm Flags:

D - down P - bundled in port-channel I - stand-alone s suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator M - not in use, minimum links not met u - unsuitable for bundling w - waiting to be aggregated d - default port A - formed by Auto LAG Number of channel-groups in use: 1 Number of aggregators:

1 Group Port-channel Protocol Ports ------+-------------+-----------+----------------------------------------------- 1 Po1(SU) LACP Gi5/0/17(P) Gi5/0/22(P) Gi6/0/12(P) Device# show vlan private-vlan Primary Secondary Type Ports ------- --------- ----------------- ------------------------------------------ 20 501 community 20 502 community 20 503 isolated Po1 Example:ConfiguringaLayer2InterfaceasaPromiscuousPrivateVLANTrunk Port on a Portchannel This example shows how to configure an interface as a promiscuous private VLAN trunk port on a port channel and to verify the configuration: Device# configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Device(config)# interface range g5/0/17, g5/0/22, g6/0/12 Device(config-if-range)# switchport mode private-vlan trunk promiscuous Device(config-if-range)# switchport private-vlan trunk allowed vlan 20 Device(config-if-range)# switchport private-vlan mapping trunk 20 501-503 Device(config-if-range)# channel-group 1 mode active Device(config-if-range)# end Device# show etherchannel summary Dec 10 13:51:28.423 PST: %SYS-5-CONFIG_I: Configured from console by consolesumm Flags:

D - down P - bundled in port-channel I - stand-alone s suspended H - Hot-standby (LACP only) R - Layer3 S - Layer2 U - in use f - failed to allocate aggregator M - not in use, minimum links not met Configuring Private VLANs Example: Configuring a Layer 2 Interface as a Promiscuous Private VLAN Trunk Port on a Portchannel VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 95