xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
349
47
802.1Q
VLAN
C
OMMANDS
The 802.1Q VLAN Function commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters)
in the following table.
Command Parameters
create vlan
<vlan_name 32 > tag <vlanid 1–4094> { type 1q_vlan advertisement }
delete vlan
<vlan_name>
config vlan
< vlan_name > { [ add [ tagged | untagged | forbidden ] | delete ] <portlist> |
advertisement [ enable | disable ]}
config gvrp
config gvrp [<portlist> | all] {state [enable | disable]|ingress_checking [enable | disable]
| acceptable_frame[tagged_only | admit_all ] pvid <vlanid 1–4094> }
enable gvrp
disable gvrp
show vlan
{[<vlan_name 32> | vlanid <vlanid_list> | ports <portlist>]}
show gvrp
{<portlist>}
Each command is listed, in detail, in the following sections.
create vlan
Purpose
Used to create a VLAN on the Switch.
Syntax
create vlan <vlan_name 32 > tag <vlanid 1–4094> { type 1q_vlan advertisement }
Description
This command is used to createsa VLAN on the Switch. The VLAN ID must be always
specified for creating a VLAN.
The second command allows the user to create a number of VLANs at a time. A unique
VLAN name (e.g. VLAN10) will be automatically assigned by the system. However, the
user can use config vlan command to rename the VLAN,
The automatic assignment of VLAN name is based on the following rule: “VLAN”+ID. For
example, for VLAN ID 100, the VLAN name will be VLAN100. If this VLAN name is
conflict with the name of an existing VLAN, then it will be renamed based on the
following rule: “VLAN”+ID+”ALT”+ collision count. For example, if this conflict is the
second collision, then the name will be VLAN100ALT2.
Parameters
vlan_name
– The name of the VLAN to be created.
tag
– The VLAN ID of the VLAN to be created. The range is 1 – 4094.
Advertisement
– Specifies the VLAN as being able to be advertised out.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create a VLAN with name “v2” and VLAN ID 2:
D G S – 3 4 2 6 : 5 # c r e a t e v l a n v 2 t a g 2 t y p e 1 q _ v l a n a d v e r t i s e m e n t
C o m m a n d : c r e a t e v l a n v 2 t a g 2 t y p e 1 q _ v l a n a d v e r t i s e m e n t
S u c c e s s .
D G S – 3 4 2 6 : 5 #