vlan

This topic explains how to enter VLAN Configuration mode for one or more VLAN IDs.

Syntax

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

No default value.

Mode

Global Configuration

Usage

Use this command to enter VLAN Configuration mode, in which the CLI prompt displays as follows:

CODE
Switch(config-vlan)#

Example

This example shows how to enter VLAN Configuration mode for VLANs 5 through 9 and VLAN 101:

CODE
Switch# configure
Switch(config)# vlan 5-9,101
Switch(config-vlan)#