![D-Link xStack DGS-3400 Series Cli Manual Download Page 131](http://html.mh-extra.com/html/d-link/xstack-dgs-3400-series/xstack-dgs-3400-series_cli-manual_77433131.webp)
xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
127
config double_vlan
Purpose
Used to config the parameters for a previously created Q-in-Q VLAN (Double VLAN) on
the Switch.
Syntax
config double_vlan <vlan_name> {[[add [access | uplink] | delete] <portlist> | tpid
<hex 0x0–0xffff>]} (1)
Description
This command is used to configure a Q-in-Q VLAN (service provider VLAN) on the
Switch.
Parameters
vlan <vlan_name 32>
– The name of the Q-in-Q VLAN to be configured. The user is to
enter an alphanumeric string of up to 32 characters to identify this VLAN.
add –
Specify this parameter to add ports configured in the
<portlist>
as one of the two
following types of ports.
•
uplink
– Add this parameter to configure these ports as uplink ports. Uplink ports
are for connecting Switch VLANs to the Provider VLANs on a remote source.
Only gigabit ports can be configured as uplink ports.
•
access
– Add this parameter to configure these ports as access ports. Access
ports are for connecting Switch VLANs to customer VLANs.
•
portlist
– Enter a list of ports to be added to this VLAN. The port list is specified
by listing the lowest switch number and the beginning port number on that switch,
separated by a colon. Then the highest switch number, and the highest port
number of the range (also separated by a colon) are specified. The beginning
and end of the port list range are separated by a dash. For example, 1:3
specifies switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3–2:4
specifies all of the ports between switch 1, port 3 and switch 2, port 4
−
in
numerical order. Non–contiguous portlist entries are separated by a comma. (ex:
1:1–1:3,1:7–1:9)
delete –
Specify this parameter to delete ports configured in the
<portlist>
from this
VLAN.
•
portlist
– Enter a list of ports to be deleted from this VLAN. The port list is
specified by listing the lowest switch number and the beginning port number on
that switch, separated by a colon. Then the highest switch number, and the
highest port number of the range (also separated by a colon) are specified. The
beginning and end of the port list range are separated by a dash. For example,
1:3 specifies switch number 1, port 3. 2:4 specifies switch number 2, port 4. 1:3–
2:4 specifies all of the ports between switch 1, port 3 and switch 2, port 4
−
in
numerical order. Non–contiguous portlist entries are separated by a comma. (ex:
1:1–1:3,1:7–1:9)
tpid <hex 0x0–0xffff>–
The tag protocol ID. This ID, identified here in hex form, will help
identify packets to devices as Q-in-Q VLAN tagged packets. The default setting is
0x8100.
Restrictions
Only Administrator and Operator-level users can issue this command.
Users must have the Switch enabled for Q-in-Q VLANs.
Example usage:
To add ports 4 through 8 as access ports to the Q-in-Q VLAN “Tiberius”:
D G S – 3 4 2 6 : 5 # c o n f i g d o u b l e _ v l a n T i b e r i u s a d d a c c e s s 1 : 4 – 1 : 8
C o m m a n d : c o n f i g d o u b l e _ v l a n T i b e r i u s a d d a c c e s s 1 : 4 – 1 : 8
S u c c e s s .
D G S – 3 4 2 6 : 5 #
Example usage:
To delete ports 4 through 8 on the Q-in-Q VLAN “Tiberius”: