RSPAN Mirroring Commands

4-183

4
Example
The following example configures port 4 to receive mirrored RSPAN traffic:

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-2)
Only two mirror sessions are allowed, including both local and remote
mirroring. If local mirroring is enabled with the port monitor command (page
4-178), then there is only one session available for RSPAN.
vlan-id - ID of configured RSPAN VLAN. (Range: 2-4092, 4094)
Use the vlan rspan command (page 4-221) 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
-unit - Stack unit. (Range: 1)
-port - Port number. (Range: 1-26/50)
Default Setting
None
Command Mode
Global Configuration
Command Usage
Only 802.1Q trunk or hybrid (i.e., general use) ports can be configured as an
RSPAN uplink port – access ports are not allowed (see switchport mode,
page 4-223).
Only one uplink port can be configured on a source switch, but there is no
limitation on the number of unplink ports configured on an intermediate or
destination switch.
Only destination and uplink ports will be assigned by the switch as members
of this VLAN. Ports cannot be manually assigned to an RSPAN VLAN with the
Console(config)#rspan session 1 destination interface ethernet 1/2
Console(config)#