Examples
This example shows how to configure VLAN 3 as the default for the port to send all untagged traffic:
Device(config)# interface gigabitethernet1/0/2
Device(config-if)# switchport trunk native vlan 3
This example shows how to add VLANs 1, 2, 5, and 6 to the allowed list:
Device(config)# interface gigabitethernet1/0/2
Device(config-if)# switchport trunk allowed vlan add 1,2,5,6
This example shows how to remove VLANs 3 and 10 to 15 from the pruning-eligible list:
Device(config)# interface gigabitethernet1/0/2
Device(config-if)# switchport trunk pruning vlan remove 3,10-15
You can verify your settings by entering the show interfaces interface-id switchport privileged EXEC
command.
Related Commands
DescriptionCommand
Displays the administrative and operational status of all interfaces or a
specified interface.
show interfaces
Configures the VLAN membership mode of a port.
switchport mode
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
1052
switchport trunk