![D-Link xStack DGS-3612G series Cli Manual Download Page 482](http://html1.mh-extra.com/html/d-link/xstack-dgs-3612g-series/xstack-dgs-3612g-series_cli-manual_3519854482.webp)
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
479
create vlan_translation
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
The create vlan_translation command can be used to add translation
relationships 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 them according to 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 a UNI port.
Parameters
portlist
– A range of ports on which the SP-VLAN will be translated to
C-VLAN.
cvid
– C-VLAN ID to match.
add
– Add SP-VLAN for the packets ingress from UNI portlist and the
packets’ C-VLAN matched cvid.
replace
– Replace packet’s CVLAN by SP-VLAN for the packets
ingress from UNI portlist and the packets’ C-VLAN matched cvid.
svid
– The SP-VLAN ID used to add or replace the ingress packets.
priority
– The 1p priority of the s-tag. If the priority is specified, it will be
used for the CVID matched packets.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create VLAN translation rule which assign to add SP-VLAN 100 to C-VLAN 1-10 on ports 1 to 4 and the priority is 4:
DGS-3627:5#create vlan_translation ports 1:1-1:4 cvid 1-10 add svid
100 priority 4
Command: create vlan_translation ports 1:1-1:4 cvid 1-10 add svid
100 priority 4
Success.
DGS-3627:5#
delete vlan_translation
Purpose
Used to delete previously configured VLAN translation rules on the
Switch.
Syntax
delete vlan_translation ports [<portlist> | all] {cvid <vidlist>}
Description Deletes
previously configured VLAN translation rules on the Switch.
Parameters
portlist
– A range of ports for which the rule will be deleted.
cvid
– Specifies C-VLAN range which the rules will be deleted. If no
parameter is specified all rules on the specified ports will be deleted.
all
– Specifies all ports.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete VLAN translations rules on ports 1 to 4: