2-9

Catalyst 2960 Switch Software Configuration Guide

78-16881-01

Chapter 2      Using the Command-Line Interface

Searching and Filtering Output of show and more Commands

In this example, the 

access-list

 global configuration command entry extends beyond one line. When the 

cursor first reaches the end of the line, the line is shifted ten spaces to the left and redisplayed. The dollar 

sign ($) shows that the line has been scrolled to the left. Each time the cursor reaches the end of the line, 

the line is again shifted ten spaces to the left. 

Switch(config)# 

access-list 101 permit tcp 131.108.2.5 255.255.255.0 131.108.1

Switch(config)# $ 

101 permit tcp 131.108.2.5 255.255.255.0 131.108.1.20 255.25

Switch(config)# $

t tcp 131.108.2.5 255.255.255.0 131.108.1.20 255.255.255.0 eq

Switch(config)# $

108.2.5 255.255.255.0 131.108.1.20 255.255.255.0 eq 45 

After you complete the entry, press

 Ctrl-A

 to check the complete syntax before pressing the 

Return

 key 

to execute the command. The dollar sign ($) appears at the end of the line to show that the line has been 

scrolled to the right:

Switch(config)# 

access-list 101 permit tcp 131.108.2.5 255.255.255.0 131.108.1$

The software assumes you have a terminal screen that is 80 columns wide. If you have a width other than 

that, use the 

terminal width

 privileged EXEC command to set the width of your terminal.

Use line wrapping with the command history feature to recall and modify previous complex command 

entries. For information about recalling previous command entries, see the 

“Editing Commands through 

Keystrokes” section on page 2-7

.

Searching and Filtering Output of show and more Commands

You can search and filter the output for 

show

 and 

more

 commands. This is useful when you need to sort 

through large amounts of output or if you want to exclude output that you do not need to see. Using these 

commands is optional.

To use this functionality, enter a 

show

 or 

more

 command followed by the 

pipe

 character (|), one of the 

keywords 

begin

, 

include

, or 

exclude

, and an expression that you want to search for or filter out:

command

 

|

 {

begin

 | 

include

 | 

exclude

} 

regular-expression

Expressions are case sensitive. For example, if you enter

 | exclude output

, the lines that contain 

output

 

are not displayed, but the lines that contain 

Output

 appear.

This example shows how to include in the output display only lines where the expression 

protocol

 

appears:

Switch# 

show interfaces | include protocol

Vlan1 is up, line protocol is up

Vlan10 is up, line protocol is down

GigabitEthernet0/1 is up, line protocol is down

GigabitEthernet0/2 is up, line protocol is up

Accessing the CLI

You can access the CLI through a console connection, through Telnet, or by using the browser. 

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