xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
596
Chapter 63
Remote Switched Port
ANalyzer (RSPAN)
Command List
enable rspan
disable rspan
create rspan vlan
[vlan_name <vlan_name> | vlan_id <value 1-4094>]
delete rspan vlan
[vlan_name <vlan_name> | vlan_id <value 1-4094>]
config rspan vlan
[vlan_name <vlan_name> | vlan_id <vlanid 1-4094>] [redirect [add | delete]
ports <portlist> | source {[add | delete] ports <portlist> [rx | tx | both]}]
show rspan
{[vlan_name <vlan_name> | vlan_id <vlanid 1-4094>]}
63-1
enable rspan
Description
This command is used to enable the RSPAN function. The purpose of the RSPAN function is to
mirror packets to a remote switch.
A packet travels from the Switch where the monitored packet is received, passing through the
intermediate switch, and then to the Switch where the sniffer is attached. The first switch is also
named the source switch.
To make the RSPAN function work, the RSPAN VLAN source setting must be configured on the
source switch. For the intermediate and the last switch, the RSPAN VLAN redirect setting must be
configured.
Note:
RSPAN VLAN mirroring will only work when RSPAN is enabled (when one RSPAN VLAN
has been configured with a source port).
The RSPAN redirect function will work when RSPAN is enabled and at least one RSPAN VLAN
has been configured with redirect ports.
Format
enable rspan
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
Configure RSPAN state to enable: