Command Line Interface

4-180

4

RSPAN Mirroring Commands

Remote Switched Port Analyzer (RSPAN) allows you to mirror traffic from remote
switches for analysis on a local destination port.
Configuration Guidelines
Take the following steps to configure an RSPAN session:
1. Use the vlan rspan command (page 4-221) to configure a VLAN to use for
RSPAN. (Default VLAN 1 and switch cluster VLAN 4093 are prohibited.)
2. Use the rspan source command to specify the interfaces and the traffic type
(RX, TX or both) to be monitored.
3. Use the rspan destination command to specify the destination port for the
traffic mirrored by an RSPAN session.
4. Use the rspan remote vlan command to specify the VLAN to be used for an
RSPAN session, to specify the switch’s role as a source, intermediate relay, or
destination of the mirrored traffic, and to configure the uplink ports designated to
carry this traffic.
RSPAN Limitations
The following limitations apply to the use of RSPAN on this switch:
RSPAN Ports – Only ports can be configured as an RSPAN source, destination, or
uplink; static and dynamic trunks are not allowed. A port can only be configured as
as one type of RSPAN interface – source, destination, or uplink. Also, note that the
source port and destination port cannot be configured on the same switch.
Local/Remote Mirror – The destination of a local mirror session (created with the
port monitor command) cannot be used as the destination for RSPAN traffic.
Only two mirror sessions are allowed. Both sessions can be allocated to remote
mirroring, unless local mirroring is enabled (which is limited to a single session).
Spanning Tree – If the spanning tree is disabled, BPDUs will not be flooded onto
the RSPAN VLAN.
MAC address learning is not supported on RSPAN uplink ports when RSPAN is
enabled on the switch. Therefore, even if spanning tree is enabled after RSPAN
Table 4-56 RSPAN Commands
Command Function Mode Page
vlan rspan Creates a VLAN dedicated to carrying RSPAN traffic VC 4-221
rspan source Specifies the source port and traffic type to be mirrored GC 4-181
rspan destination Specifies the destination port to monitor the mirrored traffic GC 4-182
rspan remote vlan Specifies the RSPAN VLAN, switch role (source, intermediate
or destination), and the uplink ports
GC 4-183
no rspan session Deletes a configured RSPAN session GC 4-184
show rspan Displays the configuration settings for an RSPAN session PE 4-184