add-vlan

Adds individual VLANs or a range of VLANs.
Syntax
add-vlan vlan-id [ to vlan-id ]
Command Default

VLANs are added when creating a VLAN group.

Parameters
vlan-id
Specifies the VLAN ID to add.
to vlan-id
Specifies the range of VLANs to add.
Modes

VLAN group configuration mode

Usage Guidelines

Use the vlan-group command to add up to 256 VLANs. To add more than 256 VLANs, use the add-vlan command.

Note: The device memory must be configured to contain at least the number of VLANs you specify for the higher end of the range. For example, if you specify 2048 as the VLAN ID at the high end of the range, you first must increase the memory allocation for VLANs to 2048 or higher. Additionally, on Layer 3 switches, if you allocate additional memory for VLANs, you also need to allocate the same amount of memory for virtual routing interfaces before you configure the VLAN groups. This is true regardless of whether you use the virtual routing interface groups. The memory allocation is required because the VLAN groups and virtual routing interface groups have a one-to-one mapping.
Examples

The following example shows how to add VLANs.

device(config)# vlan-group 1 vlan 2 to 1000
device(config-vlan-group-1)# add-vlan 1001 to 1002