User`s manual
76
DWS-1008 User’s Manual
D-Link Systems, Inc.
Conguring and Managing Ports and VLANs
Creating a VLAN
To create a VLAN, use the following command:
set vlan vlan-num name name
Specify a VLAN number from 2 to 4095, and specify a name up to 16 alphabetic characters
long. You cannot use a number as the rst character in a VLAN name. D-Link recommends
that you do not use the same name with different capitalizations for VLANs or ACLs. For
example, do not congure two separate VLANs with the names red and RED. You must
assign a name to a VLAN before you can add ports to the VLAN. You can congure the
name and add ports with a single set vlan command or separate set vlan commands.
Once you assign a VLAN number to a VLAN, you cannot change the number. However,
you can change a VLAN’s name. For example, to assign the name red to VLAN 2, type the
following command:
DWS-1008# set vlan 2 name red
After you create a VLAN, you can use the VLAN number or the VLAN name in commands.
In addition, the VLAN name appears in CLI displays.
Adding Ports to a VLAN
To add a port to a VLAN, use the following command:
set vlan vlan-id port port-list [tag tag-value]
Note: D-Link recommends that you do not use the name default. This name is already
used for VLAN 1. D-Link also recommends that you do not rename the default VLAN.
You can specify a tag value from 1 through 4095. For example, to add ports 1 through 3
and port 6 to VLAN red, type the following command:
DWS-1008# set vlan red port 1-3,6
success: change accepted.
Optionally, you also can specify a tag value to be used on trunked 802.1Q ports. To assign
the name marigold to VLAN 2, add ports 4 through 6 and port 2, and assign tag value 11 to
port 7, type the following commands:
DWS-1008# set vlan 2 name marigold port 4-6
success: change accepted.
DWS-1008# set vlan 2 name marigold port 2 tag 11
success: change accepted.