vlan

Syntax

vlan没有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 the没有shutdowncommand.

如果指定的VLAN存在,this command changes to theconfig-vlan-idcontext for the VLAN. If a range of VLANs is specified, the context does not change.

The没有form 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 to 4094.

Authority

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

Examples

Creating VLAN20:

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

Removing VLAN20:

switch(config)#没有vlan 20

Creating VLANs2to8and10:

switch(config)#vlan 2-8,10

Removing VLANs2to8and10:

switch(config)#没有vlan 2-8,10