xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
NOTE:
If the ACL function has been used to implement per flow
RSPAN, the source needs to be set otherwise the per port RSPAN
will not work.
Example usage:
To config RSPAN VLAN by VLAN name:
D G S - 3 4 2 6 : 5 # c o n f i g r s p a n v l a n v l a n _ n a m e v l a n 2 s o u r c e a d d p o r t s 2 - 5 r x
C o m m a n d : c o n f i g r s p a n v l a n v l a n _ n a m e v l a n 2 s o u r c e a d d p o r t s 1 : 2 - 1 : 5 r x
S u c c e s s .
D G S - 3 4 2 6 : 5 #
To config RSPAN VLAN by VLAN ID:
D G S - 3 4 2 6 : 5 # c o n f i g r s p a n v l a n v l a n _ i d 6 s o u r c e a d d p o r t s 2 - 5 r x
C o m m a n d : c o n f i g r s p a n v l a n v l a n _ i d 6 s o u r c e a d d p o r t s 1 : 2 - 1 : 5 r x
S u c c e s s .
D G S - 3 4 2 6 : 5 #
To config RSPAN VLAN:
D G S - 3 4 2 6 : 5 # c o n f i g r s p a n v l a n v l a n _ i d 2 s o u r c e
C o m m a n d : c o n f i g r s p a n v l a n v l a n _ i d 2 s o u r c e
S u c c e s s .
D G S - 3 4 2 6 : 5 #
config rspan vlan redirect
Purpose
Used by the intermediate or the last switch to configure the output 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 the last switch to configure the output port
of the RSPAN VLAN packets. The redirect command makes sure that the RSPAN VLAN
packets can be egressed to the redirect port. 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 a tagged member port of the
RSPAN VLAN. For the last switch, the redirect port must be either a tagged member port
or untagged member port of the RSPAN VLAN based on users’ requirement. 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 redirect settings at the same time. An
RSPAN VLAN can be configured with source settings and redirect settings at the same
time.
Parameters
vlan_name
– Specifies the RSPAN VLAN by VLAN name.
vlan_id
– Specifies the RSPAN VLAN by VLAN ID.
r
edirect
– Specifies the output port for the RSPAN VLAN packets.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
414