D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
593
76
REMOTE SWITCHED PORT ANALYZER (RSPAN) COMMANDS
The Remote Switched Port Analyzer (RSPAN) commands in the Command Line Interface (CLI) are listed (along with the
appropriate parameters) in the following table.
Command Parameters
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>] source { [ mirror_group_id
<value 1-4> | [add | delete] ports <portlist> [rx | tx | both]]}
config rspan vlan [vlan_name <vlan_name> | vlan_id <vlanid 1-4094>] redirect [add | delete] port
<port>
show rspan {[vlan_name <vlan_name> | vlan_id <vlanid 1-4094>]}
Each command is listed, in detail, in the following sections.
enable rspan
Purpose Used to enable the RSPAN globally.
Syntax
enable rspan
Description This command controls 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.
Parameters None.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
Configure RSPAN state to enable: