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