System information

49
DWS-1008 CLI Reference Guide
D-Link Systems, Inc.
VLAN Commands
set vlan port
Assigns one or more network ports to a VLAN. You also can add a virtual port to each
network port by adding a tag value to the network port.
Syntax: set vlan vlan-id port port-list [tag tag-value]
vlan-id VLAN name or number.
port port-list List of physical ports.
tag tag-value Tag value that identifies a virtual port. You can specify a value from 1
through 4095.
Defaults: By default, no ports are members of any VLANs. A DWS-1008 switch cannot
forward traffic on the network until you configure VLANs and add network ports to
the VLANs.
Access: Enabled.
Usage: You can combine this command with the set port name command to assign the name
and add the ports at the same time. If you do not specify a tag value, the switch
sends untagged frames for the VLAN. If you do specify a tag value, the switch sends
tagged frames only for the VLAN.
If you do specify a tag value, D-Link recommends that you use the same value as the VLAN
number. MSS does not require the VLAN number and tag value to be the same but some
other vendors’ devices do.
Examples: The following command assigns the name beige to VLAN 11 and adds ports 1
through 3 to the VLAN:
DWS-1008# set vlan 11 name beige port 1-3
success: change accepted.
The following command adds port 2 to VLAN beige and assigns tag value 86 to the port:
DWS-1008# set vlan beige port 2 tag 86
success: change accepted.