xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
26 
 
Example 
To remove VLANs from 10-30: 
DGS-3120-24TC:admin# delete vlan vlanid 10-30 
Command: delete vlan vlanid 10-30 
 
Success. 
 
 
3-5  config vlan 
Description 
This command is used to configure a VLAN based on the name. 
 
Format 
config vlan <vlan_name 32> {[add [tagged | untagged | forbidden] | delete] <portlist> | 
advertisement [enable | disable]}(1) 
 
Parameters 
<vlan_name 32> - Enter the VLAN name you want to add ports to. This name can be up to 32 
characters long. 
add - (Optional) Specify to add tagged, untagged or forbidden ports to the VLAN. 
tagged - Specify the additional ports as tagged. 
untagged - Specify the additional ports as untagged. 
 - Specify the additional ports as forbidden. 
delete - (Optional) Specify to delete ports from the VLAN. 
<portlist> - (Optional) Enter the list of ports used for the configuration here. 
advertisement - (Optional) Specify the GVRP state of this VLAN. 
enable - Specify to enable advertisement for this VLAN. 
disable - Specify to disable advertisement for this VLAN. 
 
Restrictions 
Only Administrator, Operator and Power-User level users can issue this command. 
 
Example 
To add 4 through 8 of unit 2 as tagged ports to the VLAN v1: 
DGS-3120-24TC:admin# config vlan v1 add tagged 2:4-2:8 
Command: config vlan v1 add tagged 2:4-2:8 
 
Success.