xStack® DGS-3620 Series Layer 3 Managed Stackable Gigabit Switch CLI Reference Guide
998
Example
To display the Q-in-Q mode for ports 1 to 2:
DGS-3620-28SC:admin#show qinq ports 1-2
Command: show qinq ports 1-2
Port ID: 1
---------------------------------------------------------
Role: NNI
Miss Drop: Disabled
Outer Tpid: 0x8100
Use Inner Priority: Disabled
Add Inner Tag: Disabled
Port ID: 2
---------------------------------------------------------
Role: NNI
Miss Drop: Disabled
Outer Tpid: 0x8100
Use Inner Priority: Disabled
Add Inner Tag: Disabled
86-8 create vlan_translation ports
Description
This command is used to create translation relationships between C-VLAN and S-VLAN. This
setting will not be effective when the Q-in-Q mode is disabled. This configuration is only effective
for a UNI port. At the UNI port, the ingress C-VLAN tagged packets will be translated to S-VLAN
tagged packets by adding or replacing according the configured rule. The S-VLAN Tag of egress
packets at this port will be recovered to C-VLAN Tag or stripped.
Format
create vlan_translation ports [<portlist> | all] [add cvid <vidlist> | replace cvid <vlanid 1-
4094>] svid <vlanid 1-4094> {priority <priority 0-7>}
Parameters
<portlist> - Enter a range of ports on which the C-VLAN will be translated to S-VLAN.
all - Specifies to configure all ports.
add cvid - Specifies to add a S-tag before C-tag for incoming packets with a specific CVID.
<vidlist> - Enter the CVID (or list) to be matched for incoming packets.
replace cvid - Specifies to replace the original C-tag to a new S-tag for incoming packets with a
<vlanid 1-4094> - Enter the CVID to be matched for incoming packets.
svid - Specifies the SVID of the S-tag to be added or replaced to the packets.
<vlanid 1-4094> - Enter the SVID between 1 and 4094.
priority - (Optional) Specify a 802.1p priority of the S-Tag between 0 and 7. If the priority is not
specified, the 802.1p priority of the S-Tag will be assigned by the port’s default priority or the