Purpose
Command or Action
Selects the trunk port for which VLANs should be pruned, and enters
interface configuration mode.
interface interface-id
Example:
Switch(config)#
interface
Step 3
gigabitethernet2/0/1
Configures the list of VLANs allowed to be pruned from the trunk.
switchport trunk pruning vlan
{
add
|
except
|
none
|
remove
}
vlan-list
[,
vlan
[,
vlan
[,,,]]
Step 4
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.
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 5
Verifies your entries in the
Pruning VLANs Enabled
field of the
display.
show interfaces interface-id switchport
Example:
Switch#
show interfaces
Step 6
gigabitethernet2/0/1 switchport
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config
Step 7
startup-config
Configuring the Native VLAN for Untagged Traffic
A trunk port configured with IEEE 802.1Q tagging can receive both tagged and untagged traffic. By default,
the switch forwards untagged traffic in the native VLAN configured for the port. The native VLAN is VLAN
1 by default.
The native VLAN can be assigned any VLAN ID.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
2139
How to Configure VLAN Trunks
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......