12-19

Catalyst 2960 Switch Software Configuration Guide

78-16881-01

Chapter 12      Configuring VLANs

Configuring VLAN Trunks

To return to the default allowed VLAN list of all VLANs, use the 

no switchport trunk allowed vlan 

interface configuration command.

This example shows how to remove VLAN 2 from the allowed VLAN list on a port:

Switch(config)# 

interface gigabitethernet0/1

Switch(config-if)# 

switchport trunk allowed vlan remove 2

Switch(config-if)# 

end

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 

“Enabling VTP Pruning” section on 

page 13-14

 describes how to enable VTP pruning.

Beginning in privileged EXEC mode, follow these steps to remove VLANs from the pruning-eligible list 

on a trunk port:

To return to the default pruning-eligible list of all VLANs, use the 

no switchport trunk pruning vlan 

interface configuration command.

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.

Note

The native VLAN can be assigned any VLAN ID.

Command

Purpose

Step 1

configure terminal

Enter global configuration mode.

Step 2

interface

 

interface-id

Select the trunk port for which VLANs should be pruned, and enter 

interface configuration mode.

Step 3

switchport trunk pruning vlan 

{

add

 | 

except

 | 

none

 | 

remove

} 

vlan-list 

[

,vlan

[

,vlan

[

,,,

]]

Configure the list of VLANs allowed to be pruned from the trunk.

 

(See 

the 

“VTP Pruning” section on page 13-4

).

For explanations about using the 

add

, 

except

, 

none

, and 

remove

 

keywords, see the command reference for this release.

Separate nonconsecutive 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.

Step 4

end

Return to privileged EXEC mode.

Step 5

show

 

interfaces

 

interface-id

 

switchport

Verify your entries in the 

Pruning VLANs Enabled

 field of the display.

Step 6

copy running-config startup-config

(Optional) Save your entries in the configuration file.

Page 241
Image 241
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.