Cisco Systems 2960 - page 221

Page 221

 

11-7

Catalyst 2960 Switch Software Configuration Guide

78-16881-01

Chapter 11      Configuring Smartports Macros

Configuring Smartports Macros

You can delete a global macro-applied configuration on a switch only by entering the 

no

 version of each 

command that is in the macro. You can delete a macro-applied configuration on an interface by entering 

the 

default interface

 

interface-id

 interface configuration command.

This example shows how to display the 

cisco-desktop

 macro, how to apply the macro, and to set the 

access VLAN ID to 25 on an interface:

Switch# 

show parser macro cisco-desktop

--------------------------------------------------------------

Macro name : cisco-desktop

Macro type : default

# Basic interface - Enable data VLAN only

# Recommended value for access vlan (AVID) should not be 1

switchport access vlan $AVID

switchport mode access

# Enable port security limiting port to a single

# MAC address -- that of desktop

switchport port-security

switchport port-security maximum 1

# Ensure port-security age is greater than one minute

# and use inactivity timer

switchport port-security violation restrict

switchport port-security aging time 2

switchport port-security aging type inactivity

# Configure port as an edge network port

spanning-tree portfast

spanning-tree bpduguard enable

--------------------------------------------------------------

Switch#

Switch# 

configure terminal

Switch(config)# 

gigabitethernet0/4

Switch(config-if)# 

macro apply cisco-desktop $AVID 25

Step 7

macro

 {

apply

 | 

trace

} 

macro-name 

[

parameter

 {

value

}] [

parameter

 

{

value

}] [

parameter

 {

value

}]

Append the Cisco-default macro with the required values by using the 

parameter

 

value

 keywords, and apply the macro to the interface. 

Keywords that begin with 

$

 mean that a unique parameter value is 

required.

You can use the 

macro apply

 

macro-name

?

 command to display a list 

of any required values in the macro. If you apply a macro without 

entering the keyword values, the commands are invalid and are not 

applied.

Step 8

end 

Return to privileged EXEC mode.

Step 9

show running-config

 

interface

 

interface-id

Verify that the macro is applied to an interface.

Step 10

copy running-config startup-config

(Optional) Save your entries in the configuration file.

Command

Purpose

Image 221
Related manuals
Manual 108 pages 14.27 Kb en Manual 28 pages 25.34 Kb en Manual 94 pages 14.25 Kb en Manual 16 pages 38.2 Kb en

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.