Operation Manual
VLAN Commands
Mobility System Software Command Reference Guide
Version 7.3
6 – 70
clear vlan
Removes physical or virtual ports from a VLAN or removes a VLAN entirely.
Syntax
clear vlan vlan-id [port port-list [tag tag-value]]
Defaults
None.
Access
Enabled.
History
Introduced in MSS Version 1.0.
Usage
If you do not specify a port-list, the entire VLAN is removed from the configuration.
Examples
The following command removes port 1 from VLAN green:
MX# 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 69, from VLAN red:
MX# clear vlan red port 4 tag 69
This may disrupt user connectivity. Do you wish to continue? (y/n) [n]y
success: change accepted.
The following command completely removes VLAN marigold:
MX# clear vlan marigold
This may disrupt user connectivity. Do you wish to continue? (y/n) [n]y
success: change accepted.
See Also
● set vlan port on page 6-74
● show vlan config on page 6-81
W arning!
When you remove a VLAN, MSS completely removes the VLAN from the
configuration and also removes all configuration information for that VLAN. If you
want to remove only a specific port from the VLAN, make sure you specify the port
number in the command.
vlan-id VLAN name or number.
port
port-list
List of physical ports. MSS removes the specified ports from the VLAN. If you do not
specify a list of ports, MSS removes the VLAN entirely.
tag
tag-value
Tag number that identifies a virtual port. MSS removes only the specified virtual
port from the specified physical ports.
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.