xStack® DGS-3620 Series Layer 3 Managed Stackable Gigabit Switch CLI Reference Guide
1062
Format
create vlan_translation ports [<portlist> | all ] [add cvid <vidlist> svid <vlanid 1-4094> |
replace outer_vid <vlanid 1-4094> {inner_vid <vlanid 1-4094>} svid <vlanid 1-4094> {cvid
<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.
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.
outer_vid - The matched VLAN ID: Service provider VLAN ID on NNI port, or Customer VLAN ID
on UNI port.
inner_vid - The matched inner VLAN ID of the double tag.
priority - (Optional) Specifies 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
priority in the C-tag.
<priority 0-7> - Enter a 802.1p priority of the S-Tag between 0 and 7.
Restrictions
Only Administrators, Operators can issue this command, QinQ must be enabled.
Example
To replace the C-tag by the S-tag with SVID 200. If the inner priority use is enabled, the priority will
be copied from the C-tag, otherwise, the priority will be the port’s default priority. The incoming
packet with CVID 20:
DGS-3620-28PC:admin#create vlan_translation ports 1 replace cvid 20 svid 200
Command: create vlan_translation ports 1 replace cvid 20 svid 200
Success.
To add S-tag with SVID 300 and 802.1p priority 5, if incoming packet with CVID 30:
DGS-3620-28PC:admin#create vlan_translation ports 1 add cvid 30 svid 300
priority 5
Command: create vlan_translation ports 1 add cvid 30 svid 300 priority 5
Success.
To Replace double tag of which outer VID is 1000 and inner VID is 10, with new SVID 2000 and
new CVID 20.
DGS-3620-28PC:admin# create vlan_translation ports 1 replace outer_vid 1000