vlan

Syntax

vlanno vlan

Description

Creates a VLAN and changes to theconfig-vlan-idcontext for the VLAN. By default, the VLAN is enabled. To disable a VLAN, use theno shutdowncommand.

If the specified VLAN exists, this command changes to theconfig-vlan-idcontext for the VLAN. If a range of VLANs is specified, the context does not change.

Thenoform of this command removes a VLAN. VLAN 1 is the default VLAN and cannot be deleted.

Command context

config

Parameters

Specifies a single ID, or a series of IDs separated by commas (2, 3, 4), dashes (2-4), or both (2-4,6). Range: 1 to4094.最多2048 (6200 Switch Series) or512 (6100 Switch Series)VLANs are supported.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Creating VLAN20:

switch(config)#vlan 20switch(config-vlan-20)#

删除VLAN20:

switch(config)#no vlan 20

Creating VLANs2to8and10:

switch(config)#vlan 2-8,10

删除VLANs2to8and10:

switch(config)#no vlan 2-8,10