66-22
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 66 Configuring SPAN and RSPAN
Configuring RSPAN
To remove one or more source VLANs from the RSPAN session, use the
no monitor session
session_number
source vlan
vlan-id
rx
global configuration command.
This example shows how to clear any existing configuration on RSPAN session 2, configure RSPAN
session 2 to monitor received traffic on all ports belonging to VLANs 1 through 3, and send it to
destination remote VLAN 902. The configuration is then modified to also monitor received traffic on all
ports belonging to VLAN 10.
Command
Purpose
Step 1
Switch#
configure terminal
Enters global configuration mode.
Step 2
Switch(config)#
no monitor session
{
session_number
|
all
|
local
|
remote
}
Clears any existing SPAN configuration for the session.
For
session_number
, specifies the session number identified with this
RSPAN session (1 through 6).
Specify
all
to remove all SPAN sessions,
local
to remove all local
sessions, or
remote
to remove all remote SPAN sessions.
Step 3
Switch(config)# [
no
]
monitor session
{
session_number
} {
source
{
interface
interface_list
| {
vlan
vlan_IDs
|
cpu
[
queue
queue_ids
]} [
rx
|
tx
|
both
]
Specifies the RSPAN session and the source VLANs (monitored
VLANs). You can monitor only received (
rx
) traffic on VLANs.
For
session_number
, specifies the session number identified with this
RSPAN session (1 through 6).
For
interface-list
, specifies the source port to no longer monitor. Valid
interfaces include physical interfaces and port-channel logical
interfaces (
port-channel
port-channel-number
).
For
vlan-IDs
, the range is 1 to 4094; do not enter leading zeros.
For
queue_ids
, specifies the source queue.
(Optional) [
,
|
-
] Specifies a series or range of interfaces. Enter a space
after the comma; enter a space before and after the hyphen.
(Optional) Specifies the direction of traffic to monitor. If you do not
specify a traffic direction, the source interface sends both transmitted
(Tx) and received (Rx) traffic. Only received traffic can be monitored
on additional source ports.
•
Rx
—Monitor received traffic.
•
Tx
—Monitor transmitted traffic.
•
both
—Monitor both received and transmitted traffic
(bidirectional).
Step 4
Switch(config)#
monitor session
session_number
destination remote
vlan
vlan-id
Specifies the RSPAN session, the destination remote VLAN.
For
session_number
, specifies the session number identified with this
RSPAN session (1 through 6).
For
vlan-id
, specifies the RSPAN VLAN to carry the monitored traffic
to the destination port.
Step 5
Switch(config)#
end
Returns to privileged EXEC mode.
Step 6
Switch#
show monitor
[
session
session_number
]
Verifies your entries.
Step 7
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...