Procedure Configuring VLAN Trunks Changing the Pruning-Eligible List Command or Action Purpose Step 1 enable Example: Device> enable Enables privileged EXEC mode. Enter your password if prompted. Step 2 configure terminal Example: Device# configure terminal Enters global configuration mode. Step 3 interface interface-id Example: Device(config)# interface gigabitethernet0/1 Selects the trunk port for which VLANs should be pruned, and enters interface configuration mode. Step 4 switchport trunk pruning vlan {add | except | none | remove} vlan-list [,vlan [,vlan [,,,]] Configures the list of VLANs allowed to be pruned from the trunk.
For explanations about using the add, except, none, and remove keywords, see the command reference for this release. Separate non-consecutive VLAN IDs with a comma and no spaces; use a hyphen to designate a range of IDs. Valid IDs are 2 to 1001. Extended-range VLANs (VLAN IDs 1006 to 4094) cannot be pruned. VLANs that are pruning-ineligible receive flooded traffic. The default list of VLANs allowed to be pruned contains VLANs 2 to 1001. Step 5 end Example: Device(config)# end Returns to privileged EXEC mode. Step 6 show interfaces interface-id switchport Example: Device# show interfaces gigabitethernet Verifies your entries in the Pruning VLANs Enabled field of the display.
VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 53