D-Link dgs-3420 Work Light User Manual


 
xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
693
---------------------------------------------------------
Role: NNI
Miss Drop: Disabled
Outer Tpid: 0x8100
Use Inner Priority: Disabled
Add Inner Tag: Disabled
DGS-3420-28SC:admin#
70-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> - Specify a range of ports on which the C-VLAN will be translated to S-VLAN.
all - Specify to configure all ports.
add cvid - Specify to add a S-tag before C-tag for incoming packets with a specific CVID.
<vidlist> - Specify the CVID (or list) to be matched for incoming packets.
replace cvid
- Specify to replace the original C-tag to a new S-tag for incoming packets with a
specific CVID.
<vlanid 1-4094> - Specify the CVID to be matched for incoming packets.
svid - Specify the SVID of the S-tag to be added or replaced to the packets.
<vlanid 1-4094> - Specify 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, 802.1p priority of S-Tag will be assigned by the priority in C-tag.
<priority 0-7> - Specify a 802.1p priority of the S-Tag between 0 and 7.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To replace the C-tag by the S-tag with SVID 200 and priority in C-tag, if the incoming packet with
CVID 20:
DGS-3420-28SC:admin#create vlan_translation ports 1 replace cvid 20 svid 200
Command: create vlan_translation ports 1 replace cvid 20 svid 200
Success.