Cli: Defining The Allowed Vlans On A Trunk; Changing The Pruning-Eligible List - Cisco Catalyst 2950 Software Manual

Desktop switch software configuration guide
Hide thumbs Also See for Catalyst 2950:
Table of Contents

Advertisement

Chapter 8
Configuring VLANs

CLI: Defining the Allowed VLANs on a Trunk

By default, a trunk port sends to and receives traffic from all VLANs in the VLAN database. All VLANs,
1 to 1005, are allowed on each trunk. However, you can remove VLANs from the allowed list, preventing
traffic from those VLANs from passing over the trunk. To restrict the traffic a trunk carries, use the
switchport trunk allowed vlan remove vlan-list interface configuration command to remove specific
VLANs from the allowed list.
A trunk port can become a member of a VLAN if the VLAN is enabled, if VTP knows of the VLAN,
and if the VLAN is in the allowed list for the port. When VTP detects a newly enabled VLAN and the
VLAN is in the allowed list for a trunk port, the trunk port automatically becomes a member of the
enabled VLAN. When VTP detects a new VLAN and the VLAN is not in the allowed list for a trunk
port, the trunk port does not become a member of the new VLAN.
Beginning in privileged EXEC mode, follow these steps to modify the allowed list of a 802.1Q trunk:
Command
Step 1
configure terminal
Step 2
interface interface_id
Step 3
switchport mode trunk
Step 4
switchport trunk allowed
vlan remove vlan-list
Step 5
end
Step 6
show interface interface-id
switchport allowed-vlan
Step 7
copy running-config
startup-config

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. The
page 8-15
Beginning in privileged EXEC mode, follow these steps to remove VLANs from the pruning-eligible list
on a trunk port:
Command
Step 1
configure terminal
Step 2
interface interface-id
78-11380-03
Purpose
Enter global configuration mode.
Enter interface configuration mode and the port to be added to the
VLAN.
Configure VLAN membership mode for trunks.
Define the VLANs that are not allowed to transmit and receive on the
port.
The vlan-list parameter is a range of VLAN IDs. Separate
nonconsecutive VLAN IDs with a comma and no spaces; use a hyphen
to designate a range of IDs. Valid IDs are from 2 to 1001.
Return to privileged EXEC.
Verify your entries.
Save the configuration.
describes how to enable VTP pruning.
Purpose
Enter global configuration mode.
Enter interface configuration mode, and select the trunk port for which VLANs
can be pruned.
"Enabling VTP Pruning" section on
Catalyst 2950 Desktop Switch Software Configuration Guide
How VLAN Trunks Work
8-23

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents