Chapter 12
| Port Mirroring Commands
RSPAN Mirroring Commands
– 413 –
◆ Port Security – If port security is enabled on any port, that port cannot be set as
an RSPAN uplink port, even though it can still be configured as an RSPAN source
or destination port. Also, when a port is configured as an RSPAN uplink port,
port security cannot be enabled on that port.
rspan source Use this command to specify the source port and traffic type to be mirrored
remotely. Use the no form to disable RSPAN on the specified port, or with a traffic
type keyword to disable mirroring for the specified type.
Syntax
[no] rspan session session-id source interface interface [rx | tx | both]
session-id – A number identifying this RSPAN session. (Range: 1-2)
Only two mirror sessions are allowed, including both local and remote
mirroring. If local mirroring is enabled with the port monitor command,
then there is only one session available for RSPAN.
interface
ethernet unit/port-list
unit - Unit identifier. (Range: 1)
port-list - One or more source ports. Use a hyphen to indicate a
consecutive list of ports or a comma between non-consecutive
ports. (Range: 1-32/54)
rx - Mirror received packets.
tx - Mirror transmitted packets.
both - Mirror both received and transmitted packets.
Default Setting
Both TX and RX traffic is mirrored
Command Mode
Global Configuration
Command Usage
â—† One or more source ports can be assigned to the same RSPAN session, either on
the same switch or on different switches.
◆ Only ports can be configured as an RSPAN source – static and dynamic trunks
are not allowed.
â—† The source port and destination port cannot be configured on the same switch.