Cisco Systems OL-6244-01 Switch User Manual


  Open as PDF
of 1438
 
2-674
Catalyst 6500 Series Switch Command Reference—Release 8.4
OL-6244-01
Chapter 2 Catalyst 6500 Series Switch and ROM Monitor Commands
set span
To specify a unique SPAN session across all types of SPAN sessions (local SPAN, RSPAN, and ESPAN),
enter the session session_number option. If you do not specify a SPAN session number, one is provided
by the software. The software provides a session number only if the basic check for SPAN session limits
and sanity is successful.
If you provide a session number, but the same session number for the same session type is present in the
SPAN database already, the session number that you enter overwrites the SPAN session with the same
number. If the same session number is already present in the database, but that session number is for a
different session type, the session number that you enter is rejected.
If you provide a session number that does not exist in the SPAN database, the number is regarded as a
new SPAN session request and is subject to SPAN session limits.
You can specify multiple destination ports in the CLI. However, you cannot mix VLANs and ports in the
same SPAN session.
Examples This example shows how to configure SPAN so that both transmit and receive traffic from port 1/1 (the
SPAN source) is mirrored on port 2/1 (the SPAN destination):
Console> (enable) set span 1/1 2/1
Enabled monitoring of Port 1/1 transmit/receive traffic by Port 2/1
Console> (enable)
This example shows how to set VLAN 522 as the SPAN source and port 2/1 as the SPAN destination:
Console> (enable) set span 522 2/1
Enabled monitoring of VLAN 522 transmit/receive traffic by Port 2/1
Console> (enable)
This example shows how to set VLAN 522 as the SPAN source and port 3/12 as the SPAN destination.
Only transmit traffic is monitored. Normal incoming packets on the SPAN destination port are allowed:
Console> (enable) set span 522 2/12 tx inpkts enable
SPAN destination port incoming packets enabled.
Enabled monitoring of VLAN 522 transmit traffic by Port 2/12
Console> (enable)
This example shows how to set port 3/2 as the SPAN source and port 2/2 as the SPAN destination:
Console> (enable) set span 3/2 2/2 tx create
Enabled monitoring of port 3/2 transmit traffic by Port 2/1
Console> (enable)
This example shows how to disable SPAN if multiple SPAN sessions are not defined:
Console> (enable) set span disable
This command WILL disable your span session(s).
Do you want to continue (y/n) [n]?y
Disabled all sessions
Console> (enable)
This example shows what happens if you try to enter the set span disable command (without the
destination module number/port number defined) and multiple SPAN sessions are defined:
Console> (enable) set span disable
Multiple active span sessions. Please specify span destination to disable.
Console> (enable)
Related Commands clear config
show span