Page 596 / 757 Scroll up to view Page 591 - 595
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
592
DGS-3627:admin# upload attack_log_toRCP username rcp_user
172.18.212.104 dest_file
/home/DGS-XXXX.alog unit 2
Command: upload attack_log_toRCP username rcp_user
172.18.212.104 dest_file /home/DGS-
XXXX.alog unit 2
Connecting to server...Done.
Upload attack log
......
Done.
DGS-3627:admin#
To upload the attack log from the device to an RCP server using an RCP string:
DGS-3627:admin# upload attack_log_toRCP rcp: [email protected]/home/DGS-XXXX.alog
Command: upload attack_log_toRCP rcp: [email protected]/home/DGS-XXXX.alog
Connecting to server
................
Done.
Upload attack log
...................
Done.
DGS-3627:admin#
To upload the attack log from a device that supports a file system to an RCP Server:
DGS-3627:admin# upload attack_log_toRCP rcp: 172.18.212.104./DGS-XXXX.log src_file
c:\attsys.log
Command: upload attack_log_toRCP rcp: 172.18.212.104./DGS-XXXX.log src_file c:\attsys.log
No RCP Username configured.
Would you like to specify a RCP Username?(N) : rcp_user
Connecting to server... Done.
Upload attack log
......
Done.
DGS-3627:admin#
Page 597 / 757
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:
Page 598 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
594
DGS-3627:admin# enable rspan
Command: enable rspan
Success.
DGS-3627:admin#
disable rspan
Purpose
Used to disable the RSPAN globally.
Syntax
disable rspan
Description
This command controls the RSPAN function.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
Configure RSPAN state to disabled:
DGS-3627:admin# disable rspan
Command: disable rspan
Success.
DGS-3627:admin#
create rspan vlan
Purpose
Used to create an RSPAN VLAN.
Syntax
create rspan vlan [vlan_name <vlan_name> | vlan_id <value 1-4094>]
Description
This command is used to create the RSPAN VLAN. Up to 16 RSPAN VLANs can be created.
Parameters
vlan_name
- Create the RSPAN VLAN by VLAN name.
vlan_id
- Create the RSPAN VLAN by VLAN ID.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create an RSPAN VLAN entry by VLAN name “v2”:
DGS-3627:admin# create rspan vlan vlan_name v2
Command: create rspan vlan vlan_name v2
Success.
DGS-3627:admin#
To create an RSPAN VLAN entry by VLAN ID “3”:
Page 599 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
595
DGS-3627:admin# create rspan vlan vlan_id 3
Command: create rspan vlan vlan_id 3
Success.
DGS-3627:admin#
delete rspan vlan
Purpose
Used to delete an RSPAN VLAN.
Syntax
delete rspan vlan [vlan_name <vlan_name> | vlan_id <value 1-4094>]
Description
This command is used to delete RSPAN VLANs.
Parameters
vlan_name
- Delete RSPAN VLAN by VLAN name.
vlan_id
- Delete RSPAN VLAN by VLAN ID.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete an RSPAN VLAN entry by VLAN name “v2”:
DGS-3627:admin# delete rspan vlan vlan_name v2
Command: delete rspan vlan vlan_name v2
Success.
DGS-3627:admin#
To delete an RSPAN VLAN entry by VLAN ID “3”:
DGS-3627:admin# delete rspan vlan vlan_id 3
Command: delete rspan vlan vlan_id 3
Success.
DGS-3627:admin#
config rspan vlan source
Purpose
Used by the source switch to configure the source setting for the RSPAN VLAN.
Syntax
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]]}
Description
This command configures the source setting for the RSPAN VLAN on the source switch.
Parameters
vlan
- See below:
vlan_name
- Specify the RSPAN VLAN by VLAN name.
vlan_id
- Specify the RSPAN VLAN by VLAN ID.
source
- If the ports are not specified by this command, the source of RSPAN will come from
the source specified by the mirror command or the flow-based source specified by an ACL.
If no parameter is specified for source, it deletes the configured source parameters.
add
- Add source ports.
delete
- Delete source ports.
ports <portlist>
- Specify source portlist to add to or delete from the RSPAN source
rx
- Only monitor ingress packets.
Page 600 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
596
config rspan vlan source
tx
- Only monitor egress packets.
both
- Monitor both ingress and egress packets.
mirror_group_id
- The mirror group identify that specify which mirror session used for RSPAN
source function.
If the mirror group is not specified when configuring the mirror ports, the mirror group 1 will be
the default group.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure an RSPAN source entry without source target port:
DGS-3627:admin#config rspan vlan vlan_name vlan2 source add ports 2-5 rx
Command:config rspan vlan vlan_name vlan2 source add ports 2-5 rx
Success.
DGS-3627:admin#
To configure an RSPAN source entry for per flow RSPAN, without any source ports:
DGS-3627:admin#config rspan vlan vlan_id 2 source
Command:config rspan vlan vlan_id 2 source
Success.
DGS-3627:admin#
To configure an RSPAN entry on a source with mirror group ID:
DGS-3627:admin#config rspan vlan vlan_id 2 source mirror_group_id 3
Command:config rspan vlan vlan_id 2 source mirror_group_id 3
Success.
DGS-3627:admin#
config rspan vlan redirect
Purpose
Used by the intermediate or last switch to configure the output port for the RSPAN mirrored
packet.
Syntax
config rspan vlan [vlan_name <vlan_name> | vlan_id <vlanid 1-4094>] redirect [add |
delete] port <port>
Description
This command is used by the intermediate or last switch to configure the output port of the
RSPAN VLAN packets.
The redirect command makes sure that the RSPAN VLAN packets can egress to the redirect
ports. In addition, to this redirect command, the VLAN setting must be correctly configured to
make the RSPAN VLAN work correctly. That is, for the intermediate switch, the redirect port
must be tagged member port of RSPAN VLAN. For the last switch, the redirect port must be
either be a tagged member port or an untagged member port of the RSPAN VLAN based on
the users’ requirements. If untagged membership is specified, the RSPAN VLAN tag will be
removed.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top