Configuring Private VLANs Configuring a Layer 2 Interface as an Isolated Private VLAN Trunk Port Command or Action Purpose private-vlan trunk secondary Step 4 switchport private-vlan association trunk primary vlan id secondary vlan id _ _ _ _ Example: Device(config-if)# switchport private-vlan association trunk 3 301 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 10. 3-4 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 PVLAN trunk port. Step 6 switchport private-vlan trunk native vlan vlan id _ Example: Device(config-if)# switchport private-vlan trunk native vlan 10 Configures a VLAN to which untagged packets (as in IEEE 802.1Q tagging) are assigned on a PVLAN trunk port. You can use the no keyword to remove native VLAN configuration on an isolated PVLAN trunk port. The native VLAN is then set to default VLAN1. Step 7 end Example: Device(config)# end Returns to privileged EXEC mode. Step 8 show interfaces [interface-id] switchport Example:
Device# show interfaces gigabitethernet1/0/2 switchport Verifies the configuration. Step 9 copy running-config startup config Example: Device# copy running-config startup-config Saves your entries in the device startup configuration file. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 83