vlan

This topic explains the commands that create or remove VLANs.

Syntax

CODE
vlan <vlan-list>
no vlan <vlan-list>

Parameter

vlan-list: The VLAN ID or list of IDs to be created. The vlan-list parameter represents a single VLAN ID (Example: 3), a range of VLAN IDs in which the IDs are separated by a hyphen (Example: 5-9), or a combination of both, in which the single IDs and ranges of IDs are separated by one or more commas (Example: 3,5-9,14,101-104). VLAN IDs can be from 1 to 4094.

Default

VLAN 1

Mode

Global Configuration

Usage

Use the vlan command to create a VLAN.

Use the no vlan command to remove an existing VLAN.

You can verify the VLAN setting in the output of the show vlan command.

Example

This example shows how to create VLAN 100:

CODE
Switch# configure
Switch(config)# vlan 100
Switch(config-vlan)#