DGS-3710 Series Layer 2 Managed Gigabit Switch CLI Reference Guide
566
55-5
config rspan vlan
Description
This command is used by the source switch to configure the source setting for the RSPAN VLAN.
The redirect command is used by the intermediate or last switch to configure the output port of the
RSPAN VLAN packets, and makes sure that the RSPAN VLAN packets can egress to the redirect
ports. In addition, 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 a tagged member port of
the RSPAN VLAN. For the last switch, the redirect port must be either 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. The redirect function will only
work when RSPAN is enabled. Multiple RSPAN VLANs can be configured with the redirect setting
at the same time.
A RSPAN VLAN can be configured with the source setting and the redirect setting at the same
time.
Format
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]}]
Parameters
vlan_name
- Specifies the RSPAN VLAN by VLAN name.
<vlan_name>
- Specifies the VLAN name.
vlan_id
- Specifies the RSPAN VLAN by VLAN ID.
<vlanid 1-4094>
- Specifies the VLAN ID between 1 and 4094.
redirect
- Specifies output port list 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
- Specifies to add the redirect port.
delete
- Specifies to delete the redirect port.
ports
- Specifies the output port list to add to or delete from the RSPAN packets.
<portlist>
- Specifies a range of ports to be configured.
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
- (Optional) Specifies to add source ports.
delete
- (Optional) Specifies to delete source ports.
ports
- (Optional) Specifies source port list to add to or delete from the RSPAN source.
<portlist>
- Specifies a range of ports to be configured.
rx
- (Optional) Specifies to only monitor ingress packets.
tx
- (Optional) Specifies to only monitor egress packets.
both
- (Optional) Specifies to monitor both ingress and egress packets.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example
To configure an RSPAN source entry without source target port: