DGS-3700 Series Layer 2 Managed Gigabit Ethernet Switch CLI Reference Guide
Page | 291
config rspan vlan
Syntax
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]}]
Description
This command configures the source setting for the RSPAN VLAN on the source
switch. The output port of the RSPAN mirrored packet will use the same
destination port as defined by the mirror command.
Note:
If RSPAN is enabled, the packets mirrored to the destination port are always
added with an RSPAN VLAN tag. If mirror is enabled but RSPAN is disabled, the
packets mirrored to the destination port may be in tagged form or in untagged
form.
Note:
Only one RSPAN VLAN can be configured with source settings.
Parameters
vlan_name
- Specify the RSPAN VLAN by VLAN name.
vlan_id
- Specify the RSPAN VLAN by VLAN ID.
redirect
- Specify output portlist for the RSPAN VLAN packets. If the redirect port is
a Link Aggregation port, the Link Aggregation behavior will apply to the RSPAN
packets.
add
- Specify to add the redirect port.
delete
- Specify to delete the redirect port.
ports
- Specify source portlist to add to or delete from the RSPAN source.
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
- Specify to add source ports.
delete
- Specify to delete source ports.
rx
- Specify to only monitor ingress packets.
tx
- Specify to only monitor egress packets.
both
- Specify to monitor both ingress and egress packets.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the rx traffic of port 2 to port 5 mirrored and add vid tag 2 :
DGS-3700-12:5#config rspan vlan vlan_name v3 source add ports 2-5 rx
Command: config rspan vlan vlan_name v3 source add ports 2-5 rx
Success.
DGS-3700-12:5#
show rspan
Purpose
Used to display RSPAN configuration.
Syntax
show rspan {[vlan_name <vlan_name> | vlan_id <vlanid 1-4094>]}
Description
This command displays the RSPAN configuration.
Parameters
vlan_name
– Specify the RSPAN VLAN by VLAN name.
vlan_id
– Specify the RSPAN VLAN by VLAN ID.
Restrictions
None.
Example usage:
To display special setting: