To create a VLAN, use the set vlans vlan-id command in L2/L3 configuration mode. To give a name to the VLAN, use the optional vlan-name keyword. To remove a VLAN, use the delete form of the command.

Command Syntax

set vlans vlan-id vlan-id [ vlan-name vlan-name ]
delete vlans vlan-id vlan-id

Parameters

vlan-idVLAN identifier. The range is from 1 to 4094. A range of VLAN identifiers can be specified, for example, 2,3,5-100.
vlan-nameVLAN name. Up to 32 alphanumeric characters in length.

Example

This example creates VLAN 10 and names it MyVLAN:

admin@Switch# set vlans vlan-id 10 vlan-name MyVLAN