| Port Mirroring Commands
C
29
HAPTER
RSPAN Mirroring Commands
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.
S
YNTAX
[no] rspan session session-id source interface interface-list
[rx | tx | both]
session-id – A number identifying this RSPAN session. (Range: 1)
Only one mirror sessions is allowed, including both local and remote
mirroring. If local mirroring is enabled with the
command, then no session can be configured for RSPAN.
interface-list – One or more source ports. Use a hyphen to indicate
a consecutive list of ports or a comma between non-consecutive
ports.
ethernet unit/port
unit - Unit identifier. (Range: 1)
port - Port number. (Range: 1-12)
rx - Mirror received packets.
tx - Mirror transmitted packets.
both - Mirror both received and transmitted packets.
D
S
EFAULT
ETTING
Both TX and RX traffic is mirrored
C
M
OMMAND
ODE
Global Configuration
C
U
OMMAND
SAGE
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.
E
XAMPLE
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
Console(config)#rspan session 1 source interface ethernet 1/3
Console(config)#
– 998 –
port monitor