Cisco Systems 3130 User Manual

Page of 1226
 
12-22
Cisco Catalyst Blade Switch 3130 for Dell Software Configuration Guide
OL-13270-01
Chapter 12      Configuring VLANs
Configuring VLAN Trunks
To return an interface to its default configuration, use the default interface interface-id interface 
configuration command. To reset all trunking characteristics of a trunking interface to the defaults, use 
the no switchport trunk interface configuration command. To disable trunking, use the switchport 
mode access
 interface configuration command to configure the port as a static-access port.
This example shows how to configure a port as an IEEE 802.1Q trunk. The example assumes that the 
neighbor interface is configured to support IEEE 802.1Q trunking.
Switch# configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)# interface gigabitethernet1/0/2 
Switch(config-if)# switchport mode dynamic desirable 
Switch(config-if)# switchport trunk encapsulation dot1q 
Switch(config-if)# end 
Defining the Allowed VLANs on a Trunk
By default, a trunk port sends traffic to and receives traffic from all VLANs. All VLAN IDs, 1 to 4094, 
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. 
Note
VLAN 1 is the default VLAN on all trunk ports in all Cisco switches, and it has previously been a 
requirement that VLAN 1 always be enabled on every trunk link. You can use the VLAN 1 minimization 
feature to disable VLAN 1 on any individual VLAN trunk link so that no user traffic (including 
spanning-tree advertisements) is sent or received on VLAN 1. 
To reduce the risk of spanning-tree loops or storms, you can disable VLAN 1 on any individual VLAN 
trunk port by removing VLAN 1 from the allowed list. When you remove VLAN 1 from a trunk port, 
the interface continues to sent and receive management traffic, for example, Cisco Discovery Protocol 
(CDP), Port Aggregation Protocol (PAgP), Link Aggregation Control Protocol (LACP), DTP, and VTP 
in VLAN 1.
If a trunk port with VLAN 1 disabled is converted to a nontrunk port, it is added to the access VLAN. If 
the access VLAN is set to 1, the port will be added to VLAN 1, regardless of the switchport trunk 
allowed
 setting. The same is true for any VLAN that has been disabled on the port.
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 trunk:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
interface interface-id
Specify the port to be configured, and enter interface configuration 
mode.
Step 3
switchport mode trunk
Configure the interface as a VLAN trunk port.