cisco Catalyst 9300 — Changing the Pruning-Eligible List

Changing the Pruning-Eligible List The pruning-eligible list applies only to trunk ports. Each trunk port has its own eligibility list. VTP pruning must be enabled for this procedure to take effect. Configuring VLAN Trunks Changing the Pruning-Eligible List Command or Action Purpose 1/0/1 Step 4 switchport mode trunk Example: Device(config-if)# switchport mode trunk Configures the interface as a VLAN trunk port. Step 5 switchport trunk allowed vlan { word | add | all | except | none | remove} vlan-list Example: Device(config-if)# switchport trunk allowed vlan remove 2 (Optional) Configures the list of VLANs allowed on the trunk.

The vlan-list parameter is either a single VLAN number from 1 to 4094 or a range of VLANs described by two VLAN numbers, the lower one first, separated by a hyphen. Do not enter any spaces between comma-separated VLAN parameters or in hyphen-specified ranges. All VLANs are allowed by default. Step 6 end Example: Device(config)# end Returns to privileged EXEC mode. Step 7 show interfaces interface-id switchport Example: Device# show interfaces gigabitethernet 1/0/1 switchport Verifies your entries in the Trunking VLANs Enabled field of the display. Step 8 copy running-config startup-config Example:

Device# copy running-config startup-config (Optional) Saves your entries in the configuration file. VLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9300 Switches) 52