Chapter 13
| Port Mirroring Commands
RSPAN Mirroring Commands
– 392 –
◆
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)#
rspan remote vlan
Use this command to specify the RSPAN VLAN, switch role (source,
intermediate or destination), and the uplink ports. Use the
no
form to disable
the RSPAN on the specified VLAN.
Syntax
[
no
]
rspan session
session-id
remote vlan
vlan-id
{
source
|
intermediate
|
destination
}
uplink
interface
session-id
– A number identifying this RSPAN session. (Range: 1-3)
Three sessions are allowed, including both local and remote
mirroring, using different VLANs for RSPAN sessions.
vlan-id
- ID of configured RSPAN VLAN. (Range: 1-4094)
Use the
rspan
command to reserve a VLAN for RSPAN
mirroring before enabling RSPAN with this command.
source
- Specifies this device as the source of remotely mirrored
traffic.
intermediate
- Specifies this device as an intermediate switch,
transparently passing mirrored traffic from one or more sources to
one or more destinations.
destination
- Specifies this device as a switch configured with a
destination port which is to receive mirrored traffic for this session.
uplink
- A port configured to receive or transmit remotely mirrored
traffic.
interface
-
ethernet
unit
/
port
ethernet
unit
/
port
unit
- Unit identifier. (Range: Always 1)
port
- Port number. (Range: 1-52)
Default Setting
None