Device(config-if)# private-vlan mapping 501-503 Device(config-if)# end Device# show interfaces private-vlan mapping Interface Secondary VLAN Type --------- -------------- ----------------- vlan20 501 isolated vlan20 502 community vlan20 503 community Example: Configuring a Layer 2 Interface as an Isolated Private VLAN Trunk Port This example shows how to configure an interface as an isolated private VLAN trunk port and to verify the configuration:
Device# configure terminal Device(config)# interface GigabitEthernet5/0/1 Device(config-if)# switchport private-vlan trunk allowed vlan 20 Device(config-if)# switchport private-vlan association trunk 20 503 Device(config-if)# switchport mode private-vlan trunk Device(config-if)# end Device# show interface GigabitEthernet5/0/1 switchport Name: GigabitEthernet5/0/1 Switchport: Enabled Administrative Mode: private-vlan trunk secondary Operational Mode: private-vlan trunk secondary Administrative Trunking Encapsulation: dot1q Operational Trunking Encapsulation: dot1q Negotiation of Trunking: On Access Mode VLAN: 1 (default) Trunking Native Mode VLAN:
1 (default) Administrative Native VLAN tagging: enabled Voice VLAN: none Administrative private-vlan host-association: none Administrative private-vlan mapping: none Administrative private-vlan trunk native VLAN: none Administrative private-vlan trunk Native VLAN tagging: enabled Administrative private-vlan trunk encapsulation: dot1q Administrative private-vlan trunk normal VLANs: 20 Administrative private-vlan trunk associations: 20 (VLAN0020) 503 (VLAN0503) Administrative private-vlan trunk mappings: none Operational private-vlan: 20 (VLAN0020) 503 (VLAN0503) Operational Normal VLANs: none Trunking VLANs Enabled: ALL Pruning VLANs Enabled:
2-1001 Capture Mode Disabled Capture VLANs Allowed: ALL Protected: false Unknown unicast blocked: disabled Unknown multicast blocked: disabled Vepa Enabled: false Appliance trust: none Configuring Private VLANs Example: Configuring a Layer 2 Interface as an Isolated Private VLAN Trunk Port VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 93