System information

46
DWS-1008 CLI Reference Guide
D-Link Systems, Inc.
VLAN Commands
clear vlan (continued)
Usage: If you do not specify a port-list, the entire VLAN is removed from the configuration.
Note: You cannot delete the default VLAN but you can remove ports from it. To remove ports
from the default VLAN, use the port port-list option.
Examples: The following command removes port 1 from VLAN green:
DWS-1008# clear vlan green port 1
This may disrupt user connectivity. Do you wish to continue? (y/n) [n]y
success: change accepted.
The following command removes port 4, which uses tag value 68, from VLAN red:
DWS-1008# clear vlan red port 4 tag 68
This may disrupt user connectivity. Do you wish to continue? (y/n) [n]y
success: change accepted.
The following command completely removes VLAN marigold:
DWS-1008# clear vlan marigold
This may disrupt user connectivity. Do you wish to continue? (y/n) [n]y
success: change accepted.
set fdb
Adds a permanent or static entry to the forwarding database.
Syntax: set fdb {perm | static} mac-addr port port-list vlan vlan-id [tag tag-value]
perm Adds a permanent entry. A permanent entry does not age out and remains in
the database even after a reboot, reset, or power cycle.
static Adds a static entry. A static entry does not age out, but is removed from the
database after a reboot, reset, or power cycle.
mac-addr Destination MAC address of the entry. Use colons to separate the octets (for
example, 00:11:22:aa:bb:cc).
port port-list List of physical destination ports for which to add the entry. A separate entry
is added for each port you specify.