C
HAPTER
28
| Port Mirroring Commands
RSPAN Mirroring Commands
– 1015 –
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)
Only one mirror session is allowed, including both local and remote
mirroring. If local mirroring is enabled with the port monitor
command, then no session can be configured for RSPAN.
interface - ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-28/52)
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.
â—† Only 802.1Q trunk or hybrid (i.e., general use) ports can be configured
as an RSPAN destination port – access ports are not allowed (see
switchport mode).
◆ Only ports can be configured as an RSPAN destination – static and
dynamic trunks are not allowed.
â—† The source port and destination port cannot be configured on the same
switch.
â—† A destination port can still send and receive switched traffic, and
participate in any Layer 2 protocols to which it has been assigned.
EXAMPLE
The following example configures port 4 to receive mirrored RSPAN traffic:
Console(config)#rspan session 1 destination interface ethernet 1/2
Console(config)#