xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
120
create vlan
Purpose
Used to create a VLAN on the Switch.
Syntax
create vlan <vlan_name 32> {tag <vlanid 2-4094> | type 1q_vlan | advertisement}
Description
This command is used to create VLANs on the Switch.
Parameters
<vlan_name 32>
−
The name of the VLAN to be created.
tag <vlanid 2–4094>
−
The VLAN ID of the VLAN to be created. Allowed values = 2–4094
type –
This parameter uses the
type
field of the packet header to determine the packet
protocol and destination VLAN:
1q_vlan
– Allows the creation of a normal 802.1Q VLAN on the Switch.
advertisement
−
Specifies that the VLAN is able to join GVRP.
Restrictions
Each VLAN name can be up to 32 characters. Only Administrator and Operator-level
users can issue this command.
Example usage:
To create a VLAN v1, tag 2:
D G S – 3 4 2 6 : 5 # c r e a t e v l a n v 1 t a g 2
C o m m a n d : c r e a t e v l a n v 1 t a g 2
S u c c e s s .
D G S – 3 4 2 6 : 5 #
delete vlan
Purpose
Used to delete a previously configured VLAN on the Switch.
Syntax
delete vlan <vlan_name 32>
Description
This command is used to delete a previously configured VLAN on the Switch.
Parameters
<vlan_name 32>
−
The VLAN name of the VLAN to delete.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To remove the VLAN “v1”:
D G S – 3 4 2 6 : 5 # d e l e t e v l a n v 1
C o m m a n d : d e l e t e v l a n v 1
S u c c e s s .
D G S – 3 4 2 6 : 5 #