xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
370
D G S – 3 4 2 6 : 4 # s h o w q i n q p o r t 1 : 1 - 1 : 4
C o m m a n d s : s h o w q i n q p o r t s 1 : 1 - 1 : 4
P o r t R o l e M i s s D r o p T P I D
- - - - - - - - - - - - - - - - - - - - - - - - - -
1 : 1 U N I E n a b l e d 0 x 8 8 A 8
1 : 2 U N I E n a b l e d 0 x 8 8 A 8
1 : 3 U N I E n a b l e d 0 x 8 8 A 8
1 : 4 N N I D i s a b l e d 0 x 8 8 A 8
D G S – 3 4 2 6 :
create vlan_translation ports
Purpose
Create a VLAN translation rule.
Syntax
create vlan_translation ports [<portlist> | all ] cvid <vidlist> [add| replace] svid
<vlanid 1-4094> {priority <value 0-7>}
Description
This command is used to add translation relationship between C-VLAN and SP-VLAN.
On ingress at UNI port, the C-VLAN tagged packets will be translated to SP-VLAN tagged
packets by adding or replacing according the configured rule. On egress at this port, the
SP-VLAN tag will be recovered to C-VLAN tag or be striped.
The priority will be the priority in the SP-VLAN tag.
This configuration is only effective for an UNI port.
This setting will not be effective when Q-in-Q mode is disabled.
Note that the project has the option to implement either the Q-in-Q profile command set
or the vlan translation command set. If the project is required to implement the enhanced
set of classification method in addition to vlan classification, then Q-in-Q profile command
is needed. Otherwise, the vlan translation command set is sufficient.
Parameters
<portlist>
−
A range of ports on which the SP-VLAN will be translated to C-VLAN.
cvid
−
C-VLAN ID to match.
add
−
The action indicates to add a tag for the assigned SP-VLAN before the C-VLAN
tag.
replace
−
The action indicates to replace the C-VLAN tag with the SP VLAN
svid
−
SP-VLAN ID.
priority
−
The priority of the s-tag.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage
To create a VLAN translation rule which assign to add SP-VALN 100 to C-VLAN 1-10 on ports 1-4 and the priority is 4:
D G S – 3 4 2 6 : 5 # c r e a t e v l a n _ t r a n s l a t i o n p o r t s 1 - 4 c v i d 1 0 a d d s v i d 1 0 0 p r i o r i t y 4
C o m m a n d : c r e a t e v l a n _ t r a n s l a t i o n p o r t s 1 - 4 c v i d 1 0 a d d s v i d 1 0 0 p r i o r i t y 4
S u c c e s s .
D G S – 3 4 2 6 : 5 #