12-18

Catalyst 2960 Switch Software Configuration Guide

78-16881-01

Chapter 12      Configuring VLANs

Configuring VLAN Trunks

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.

Step 4

switchport trunk allowed vlan

 {

add

 | 

all

 | 

except

 | 

remove

} 

vlan-list 

(Optional) Configure the list of VLANs allowed on the trunk. 

For explanations about using the 

add

, 

all

, 

except

, and 

remove

 keywords, 

see the command reference for this release.

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 5

end

Return to privileged EXEC mode.

Step 6

show interfaces 

interface-id

 switchport 

Verify your entries in the 

Trunking VLANs Enabled

 field of the display.

Step 7

copy running-config startup-config

(Optional) Save your entries in the configuration file.

Page 240
Image 240
Open full-size image

2960 specifications

Cisco Systems 2960 series switches are a prominent solution in the networking landscape, known for their reliability, scalability, and feature-rich offerings. Ideal for small to medium-sized enterprises, these switches provide a robust foundation for network infrastructure, ensuring optimal performance and connectivity.

One of the standout features of the Cisco 2960 series is its Layer 2 switching capabilities. The switches support multiple VLANs (Virtual Local Area Networks), allowing network administrators to segment traffic efficiently and enhance security protocols. This is crucial in modern networks where managing traffic and isolating sensitive information is a priority.

The Cisco 2960 series also incorporates advanced Quality of Service (QoS) features, enabling the prioritization of critical applications and services. This functionality ensures that time-sensitive data, such as voice and video traffic, maintains a high quality of service even in congested networks. With support for IEEE 802.1p and DSCP marking, administrators can fine-tune their network performance to meet specific organizational needs.

Power over Ethernet (PoE) is another significant characteristic of the Cisco 2960 series. This feature allows switches to deliver electrical power alongside data over Ethernet cables to devices such as IP phones, wireless access points, and surveillance cameras. With PoE, organizations can reduce clutter from power cables and increase deployment flexibility for various devices.

In terms of security, the Cisco 2960 series is equipped with a range of integrated security features. The switch supports port security, 802.1X authentication, and Access Control Lists (ACLs), providing robust defenses against unauthorized access and potential network vulnerabilities. These security measures are essential for protecting sensitive data and ensuring compliance with industry regulations.

Moreover, the Cisco 2960 series offers enhanced network management capabilities with Cisco's Intelligent Network Services. This includes support for Simple Network Management Protocol (SNMP), Cisco Prime, and Embedded Event Manager (EEM), allowing for efficient monitoring, troubleshooting, and policy enforcement across the network.

Additionally, the Cisco 2960 switches provide various models and configurations, catering to different networking needs. Options include models with varying port densities, uplink configurations, and stacking capabilities, making it easy for organizations to choose solutions that align perfectly with their requirements.

In summary, the Cisco 2960 series is a versatile and essential component of modern networking environments. Its advanced features, including Layer 2 support, QoS, PoE, robust security, and diverse management tools, make it an excellent choice for organizations looking to build a strong and secure network infrastructure.