Defining The Allowed Vlans On A Trunk - Cisco WS-C3550-12G Software Configuration Manual

Multilayer switch
Hide thumbs Also See for WS-C3550-12G:
Table of Contents

Advertisement

Chapter 9
Creating and Maintaining VLANs
In this example, the encapsulation method is ISL:
Switch# show interfaces gigabitethernet0/4 trunk
Port
Gi0/4
Port
Gi0/4
Port
Gi0/4
Port
Gi0/4

Defining the Allowed VLANs on a Trunk

By default, a trunk port sends traffic to and receives traffic from all VLANs in the VLAN database. All
VLANs, 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 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 an ISL
or 802.1Q trunk:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
switchport trunk allowed vlan {add |
except | none | remove} vlan-list
Step 4
end
Step 5
show interfaces interface-id switchport Verify your entries in the Trunking VLANs Enabled field of the display.
Step 6
copy running-config startup-config
78-11194-03
Mode
Encapsulation
desirable
n-isl
Vlans allowed on trunk
1-1005
Vlans allowed and active in management domain
1,10-1000
Vlans in spanning tree forwarding state and not pruned
1,10-1000
Purpose
Enter global configuration mode.
Enter interface configuration mode and the port to be added to the
VLAN.
(Optional) Configure the list of VLANs allowed on the trunk.
For explanations about using the add, except, none, and remove
keywords, refer to Catalyst 3550 Multilayer Switch Command Reference
for this release.
The vlan-list parameter is either a single VLAN number from 1 to 1005
or a range of VLANs described by two VLAN numbers, the lesser 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. You cannot remove any of the default
VLANs from a trunk.
Return to privileged EXEC.
(Optional) Save your entries in the configuration file.
Status
Native vlan
trunking
1
Catalyst 3550 Multilayer Switch Software Configuration Guide
Understanding VLAN Trunks
9-27

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3550

Table of Contents