Americas Headquarters
First Published July 10
Cisco Systems, Inc
170 West Tasman Drive San Jose, CA
Cisco Systems, Inc. All rights reserved
Obtaining Documentation and Submitting a Service Request
Using the Command-Line Interface
Information About Using the Command-Line Interface Command Modes
Using the Help System Understanding Abbreviated Commands
Cisco Configuration Engine Software Configuration Service
Event Service NameSpace Mapper
Cisco Networking Services IDs and Device Hostnames 16 ConfigID
DeviceID Hostname and DeviceID Hostname, DeviceID, and ConfigID
Feature History and Information for Cisco Discovery Protocol
Configuring Simple Network Management Protocol
Finding Feature Information Prerequisites for SNMP
SNMP MIB Variables Access SNMP Notifications
SPAN and RSPAN Interaction with Other Features
Default SPAN and RSPAN Configuration Configuration Guidelines
SPAN Configuration Guidelines RSPAN Configuration Guidelines
FSPAN and FRSPAN Configuration Guidelines
Feature History and Information for SPAN and RSPAN
Examples Creating an RSPAN VLAN
Contents
OL-29044-01
Contents
viii
OL-29044-01
Obtaining Documentation and Submitting a Service Request, page
Preface
Document Conventions
Document Conventions, page Related Documentation, page
Tip Means the following information will help you solve a problem
Reader Alert Conventions
Convention
Description
Obtaining Documentation and Submitting a Service Request
Related Documentation
Preface Obtaining Documentation and Submitting a Service Request
OL-29044-01
Using the Command-Line Interface
Information About Using the Command-Line Interface
Command Modes
Information About Using the Command-Line Interface, page
Access Method
About This Mode
the configure
vlan-id command
Using the Help System
2. abbreviated-command-entry ? 3. abbreviated-command-entry Tab
5. command ? 6. command keyword ?
Command or Action
Understanding Abbreviated Commands
No and default Forms of Commands
CLI Error Messages
Lists all commands available for a particular command
How to Use the CLI to Configure Features
Configuration Logging
Configuring the Command History
Error Message
Changing the Command History Buffer Size
Recalling Commands
Repeat the key sequence to recall successively older commands
more recent commands
Enabling and Disabling Editing Features
Disabling the Command History Feature
privileged EXEC mode
Reenables the enhanced editing mode for the current terminal
Editing Commands through Keystrokes
in the privileged EXEC mode
terminal no editing
Ctrl-B or use the left arrow key
Editing Command Lines That Wrap
1. access-list 2. Ctrl-A 3. Return key
Esc D
Esc C
Searching and Filtering Output of show and more Commands
access-list
1. show more command begin include exclude regular-expression
show more command begin include exclude
Accessing the CLI through a Console Connection or through Telnet
Command or Action Example
Purpose
Using the Command-Line Interface
Accessing the CLI through a Console Connection or through Telnet
OL-29044-01
Finding Feature Information
Prerequisites for Configuring the Configuration Engine
Finding Feature Information, page
Prerequisites for Configuring the Configuration Engine, page
Restrictions for Configuring the Configuration Engine
Information About Configuring the Configuration Engine
Cisco Configuration Engine Software
Cisco Networking Services IDs and Device Hostnames, on page
Configuration Service
Figure 1 Cisco Configuration Engine Architectural Overview
Event Service
Cisco Networking Services IDs and Device Hostnames
ConfigID
Prerequisites for Configuring the Configuration Engine, on page
Hostname, DeviceID, and ConfigID
DeviceID
Hostname and DeviceID
Refreshing DeviceIDs, on page
Initial Configuration
Automated CNS Configuration, on page
Cisco IOS CNS Agents
Related Topics
Automated CNS Configuration
Incremental Partial Configuration
Synchronized Configuration
Required Configuration
How to Configure the Configuration Engine
Initial Configuration, on page
1. configure terminal
Enabling the CNS Event Agent
configure terminal
Enters the global configuration mode
reconnect-time time backup
What to Do Next
Event Service, on page
2. cns config initial hostname ip-address port-number
3. cns config partial hostname ip-address port-number
cns config initial hostname ip-address
Enabling an Initial Configuration for Cisco IOS CNS Agent
Enables the Cisco IOS CNS agent and initiates a partial configuration
on the switch
Returns to privileged EXEC mode
1. configure terminal 2. cns template connect name
3. cli config-text
cli config-text
each command line in the template
Returns to global configuration mode
exit
Step 7 discover controller controller-type dlci
Step 8 template name ... name
hostname string string udi event image command
hostname name
ip route network-number
address is network-number
port-number event no-persist page
page source ip-address syntax-check
Command or Action
Returns to privileged EXEC mode
1. show cns config connections
5. configure terminal
Refreshing DeviceIDs
3. show cns event connections
show cns config connections
show cns event connections
no cns event ip-address port-number
cns event ip-address port-number
Enabling a Partial Configuration for Cisco IOS CNS Agent
cns config partial ip-address hostname
Enabling the Cisco IOS CNS Agent, on page
Hostname and DeviceID, on page
Monitoring CNS Configurations
Command
show cns config outstanding
show cns config stats
Feature History and Information for the Configuration Engine
Configuration Engine Setup
docs/netmgmt/configurationengine/1.5
installationlinux/guide/setup1.html
Configuring the Cisco Discovery Protocol
Finding Feature Information, page Information About CDP, page
How to Configure CDP, page Monitoring and Maintaining CDP, page
Feature History and Information for Cisco Discovery Protocol, page
How to Configure CDP
Default CDP Configuration
Configuring CDP Characteristics
Feature
1. configure terminal 2. cdp timer seconds 3. cdp holdtime seconds
cdp timer seconds
4. cdp advertise-v2 5. end
cdp holdtime seconds
1. configure terminal 2. no cdp run 3. end
Disables CDP
Disabling CDP
Monitoring and Maintaining CDP, on page
1. configure terminal 2. cdp run 3. end
Enables CDP if it has been disabled
Enabling CDP
Enabling CDP, on page
3. no cdp enable 4. end
and enters interface configuration mode
Disabling CDP on an Interface
Disabling CDP, on page
no cdp enable
Disables CDP on the interface specified in Step
3. cdp enable 4. end
Enabling CDP on an Interface
cdp enable
Enables CDP on a disabled interface
Resets the traffic counters to zero
Monitoring and Maintaining CDP
Configuring CDP Characteristics, on page
Cisco IOS Configuration Fundamentals Command
Switches
show cdp entry entry-name version protocol
Feature History and Information for Cisco Discovery Protocol
Technical Assistance
Description
Link
Configuring Simple Network Management Protocol
Finding Feature Information, page Prerequisites for SNMP, page
How to Configure SNMP, page Monitoring SNMP Status, page
Prerequisites for SNMP
Authentication
Model
Level
Encryption
Authentication
Model
Level
Encryption
Restrictions for SNMP
Information About SNMP
SNMP Overview
SNMP Manager Functions
SNMP MIB Variables Access
SNMP Agent Functions
SNMP Community Strings
Operation
SNMP Notifications
SNMP ifIndex MIB Object Values
Default SNMP Configuration
SNMP Configuration Guidelines
Default Setting
Interface Type
How to Configure SNMP
1. configure terminal 2. no snmp-server 3. end
Disabling the SNMP Agent
Before You Begin
Configuring Community Strings
Disables the SNMP agent operation
3. access-list access-list-number deny permit source source-wildcard
no snmp-server
view view-name ro rw access-list-number
Step 3 access-list access-list-number deny
Step 2 snmp-server community string
permit source source-wildcard
Configuring SNMP Groups and Users
5. end
snmp-server engineID local
engineid-string remote ip-address
notifyview access access-list
group-name remote host udp-port port v1 access access-list v2c
access access-list v3 encrypted access access-list auth md5 sha
auth-password priv des 3des aes 128 192 256 priv-password
Configuring SNMP Notifications
Step 5 end Example
Command or Action Example
Purpose
config
copy-config
Notification Type Keyword
bridge
1 snmp-server enable traps port-security
2 snmp-server enable traps port-security trap-rate rate
port-security
snmp
6. snmp-server enable traps notification-types
9. snmp-server trap-timeout seconds 10. end
host udp-port port v1 access access-list
v2c access access-list v3 encrypted access
Step 6 snmp-server enable traps notification-types
1 snmp-server enable traps port-security
2 snmp-server enable traps port-security trap-rate rate
range is 1 to 1000 the default is
Setting the Agent Contact and Location Information
snmp-server trap-timeout seconds
to 1000 the default is 30 seconds
1. configure terminal 2. snmp-server contact text
2. snmp-server tftp-server-list access-list-number
Limiting TFTP Servers Used Through SNMP
snmp-server contact text
Sets the system contact string
access-list-number
Monitoring SNMP Status
Step 2 snmp-server tftp-server-list
Command or Action
running-config output
SNMP Examples
show snmp
show snmp engineID
Switchconfig# snmp-server enable traps entity
Release
Modification
Cisco IOS 15.02EX
Configuring SPAN and RSPAN
How to Configure SPAN and RSPAN, page
SPAN and RSPAN Configuration Examples, page
Feature History and Information for SPAN and RSPAN, page
Restrictions for SPAN and RSPAN
RSPAN
SPAN
Flow-Based SPAN FSPAN and Flow-Based RSPAN FRSPAN
An RSPAN source session cannot have a local destination port
RSPAN
Information About SPAN and RSPAN
SPAN and RSPAN
Local SPAN
name
Remote SPAN
Figure 4 Example of Local SPAN Configuration on a Single Device
Figure 5 Example of Local SPAN Configuration on a Device Stack
SPAN and RSPAN Concepts and Terminology
SPAN Sessions, page Monitored Traffic Source Ports Source VLANs
VLAN Filtering Destination Port RSPAN VLAN
SPAN Sessions
Monitored Traffic
Source Ports
Source VLANs
VLAN Filtering
Destination Port
RSPAN VLAN
SPAN and RSPAN Interaction with Other Features
Flow-Based SPAN
SPAN and RSPAN and Device Stacks
Default SPAN and RSPAN Configuration
Configuration Guidelines
SPAN Configuration Guidelines
Feature
How to Configure SPAN and RSPAN
RSPAN Configuration Guidelines
FSPAN and FRSPAN Configuration Guidelines
Creating a Local SPAN Session
Step 2 no monitor session sessionnumber all local remote
Step 3 monitor session sessionnumber source
interface interface-id vlan vlan-id
both rx tx
Creating a Local SPAN Session and Configuring Incoming Traffic
Step 5 end
Command or Action Example
Returns to privileged EXEC mode
no monitor session sessionnumber all
local remote
monitor session sessionnumber source
interface interface-id vlan vlan-id
Command or Action
untagged encapsulation type with the specified VLAN as the default
Returns to privileged EXEC mode
Specifying VLANs to Filter
Configuring a VLAN as an RSPAN VLAN
interface interface-id
Step 4 monitor session sessionnumber filter vlan
vlan-id
2. vlan vlan-id
3. remote-span 4. end
vlan vlan-id
remote-span
Creating an RSPAN Source Session
4. monitor session sessionnumber destination remote vlan vlan-id
Step 2 no monitor session sessionnumber all local remote
1. configure terminal
monitor session sessionnumber
destination remote vlan vlan-id
5. monitor session sessionnumber destination remote vlan vlan-id
Command or Action
Step 2 no monitor session sessionnumber all local remote
Step 5 monitor session sessionnumber destination remote vlan vlan-id
Command or Action
configure terminal
Creating an RSPAN Destination Session
3. remote-span 4. exit
5. no monitor session sessionnumber all local remote
6. monitor session sessionnumber source remote vlan vlan-id
no monitor session sessionnumber all
local remote
monitor session sessionnumber source
remote vlan vlan-id
3. monitor session sessionnumber source remote vlan vlan-id
Step 3 monitor session sessionnumber source remote vlan vlan-id
1. configure terminal
Command or Action
Configuring an FSPAN Session
Enters global configuration mode
Command or Action
1. configure terminal
Command or Action
Step 2 no monitor session sessionnumber all local remote
Example
Step 3 monitor session sessionnumber source
Configuring an FRSPAN Session
access-list-number name
5. vlan vlan-id
6. remote-span 7. exit
Command or Action
configure terminal
Enters global configuration mode
DETAILED STEPS
ipv6 mac access-group access-list-number name
or FRSPAN configuration
Monitoring SPAN and RSPAN Operations
vlan vlan-id
SPAN and RSPAN Configuration Examples
Example Configuring Local SPAN
Feature History and Information for SPAN and RSPAN
Examples Creating an RSPAN VLAN
Release
Modification
defined in terms of access lists that
Release
Modification
SPAN Destination Port Support on
I N D E