clear vlan

Last Updated : Nov 06, 2012 |

Deletes an existing VLAN and its interface. When you clear a VLAN, all ports assigned to that VLAN are returned to the default VLAN.

Syntax

clear vlan vlan_id | {name vlan_name}

Parameters

Parameter

Description

Possible Values

Default Value

vlan_id

The VLAN number

name

Keyword specifying to identify the VLAN by the VLAN name

vlan_name

The VLAN name.

If you wish to enter a name which includes spaces, you must enclose the entire name in quotation marks, for example new york.

User level

read-write

Context

general

Example

To delete VLAN 100:

Gxxx-001(super)# clear vlan 100
This command will assign all ports on vlan 100 to their default in the entire 
management domain - do you want to continue (Y/N)? y
VLAN 100 deletion successful