rspan source

Configures a Remote Switched Port Analyzer (RSPAN) source port and properties for port mirroring.
Syntax
rspan source { monitor-both | monitor-in | monitor-out } { ethernet unit/slot/port | lag lag-id }
no rspan source { monitor-both | monitor-in | monitor-out } { ethernet unit/slot/port | lag lag-id }
Command Default

No RSPAN source port is configured.

Parameters
monitor-both
Specifies ingress and egress traffic.
monitor-in
Specifies ingress traffic only.
monitor-out
Specifies egress traffic only.
ethernet unit/slot/port
Specifies the Ethernet interface and the interface ID in the unit/slot/port format.
lag lag-id
Specifies the LAG virtual interface.
Modes

RSPAN configuration mode

Usage Guidelines

The configured VLAN must not be a user VLAN. This command can be successfully executed only if an RSPAN destination port is configured. RSPAN must be configured on all the switches participating in the RSPAN session.

The no form of the command deletes the port mirroring source port for the specified interface.

Examples

The following example configures an Ethernet interface as an RSPAN source port and specifies that ingress traffic is monitored for a device.

device# configure terminal
device(config)# rspan-vlan 4000
device(config-rspan-vlan)# tagged ethernet 1/1/2
device(config-rspan-vlan)# rspan source monitor-in ethernet 1/1/1
History
Release version Command history
08.0.80 This command was introduced.