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