16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
Configuration Tasks
77
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
Specifying the Switched Port Analyzer Session
To configure the source for a Switched Port Analyzer (SPAN) session, use the following command in
global configuration mode:
Note
Multiple SPAN sessions can be configured. But only one SPAN session is supported at a time.
The following example shows how to configure SPAN session 1 to monitor bidirectional traffic from
source interface Fast Ethernet 5/1:
Router(config)#
monitor
session
1 source interface fastethernet 5
/
1
Configuring SPAN Destinations
To configure the destination for a SPAN session, use the following command in global configuration
mode:
Removing Sources or Destinations from a SPAN Session
To remove sources or destinations from a SPAN session, use the following command in global
configuration mode:
Command
Purpose
Step 1
Router(config)#
monitor
session
{
session-number
}
{
source
{
interface
slot/port} | {
vlan
vlan-id
}}
[
,
|
-
|
rx
|
tx
|
both
]
Specifies the SPAN session number (1 or 2), the source
interfaces or VLANs, and the traffic direction to be
monitored.
Command
Purpose
Step 1
Router(config)#
monitor
session
{
session-number
}
{
destination
{
interface
type
/
num
} [
,
|
-
] | {
vlan
vlan-id
}}
Specifies the SPAN session number (1 or 2) and the
destination interfaces or VLANs.
Command
Purpose
Step 1
Router(config)#
no monitor session
session-number
Clears existing SPAN configuration for a session.