vlan
Note |
To configure any parameter on the ENCS switch portal, ensure that you add or remove parameters using separate transactions on the CLI. For example, adding and removing multiple VLANs from the ENCS switch portal is not supported in the same CLI transaction. Add a VLAN first and then remove the VLAN in a separate transaction. |
vlan [ vlan-id] [ range vlan-range]
no vlan vlan-id
Syntax Description
vlan-id |
Specifies a VLAN ID. You can enter a value from one of the following ranges for the VLAN ID:
|
range vlan-range |
Specifies a list of VLAN IDs. Separate nonconsecutive VLAN IDs with a comma and no spaces. Use a hyphen to designate a range of IDs. |
Command Default
The default VLAN is VLAN 1.
Command Modes
Switch configuration (config-switch)
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
Usage Guidelines
If the VLAN does not exist, the VLAN is created. If the VLAN cannot be created, the command is finished with error and the current context is not changed.
Examples
The following example shows how to create a VLAN:
nfvis(config)# switch
nfvis(config-switch)# vlan range 19-23