CLI Reference Guide-R04

Table Of Contents
Chapter 13
| Port Mirroring Commands
RSPAN Mirroring Commands
– 464 –
Only ports can be configured as an RSPAN source – static and dynamic trunks
are not allowed.
Only 802.1Q trunk or hybrid (i.e., general use) ports can be configured as an
RSPAN source port – access ports are not allowed (see switchport mode).
The source port and destination port cannot be configured on the same switch.
Example
The following example configures the switch to mirror received packets from port 2
and 3:
Console(config)#rspan session 1 source interface ethernet 1/2-3 rx
Console(config)#
rspan destination Use this command to specify the destination port to monitor the mirrored traffic.
Use the no form to disable RSPAN on the specified port.
Syntax
rspan session session-id destination interface interface [tagged | untagged]
no rspan session session-id destination interface interface
session-id – A number identifying this RSPAN session. (Range: 1)
interface - ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-28)
tagged - Traffic exiting the destination port carries the RSPAN VLAN tag.
untagged - Traffic exiting the destination port is untagged.
Default Setting
Traffic exiting the destination port is untagged.
Command Mode
Global Configuration
Command Usage
Only one destination port can be configured on the same switch per session,
but a destination port can be configured on more than one switch for the same
session.
If RSPAN packets are configured to carry a VLAN tag, then the destination port
type cannot be access mode (see switchport mode). If the RSPAN packets are
configured as untagged, then the destination port type cannot be trunk mode
(see switchport mode).