1435
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter V Commands
vlan
vlan
To add a VLAN or to enter the VLAN configuration mode, use the
vlan
command. To delete the VLAN
and exit the VLAN configuration mode
, u
se the
no
form of this command.
vlan
{
vlan-id
|
vlan-range
}
no vlan
{
vlan-id
|
vlan-range
}
Syntax Description
Command Default
None
Command Modes
Global configuration mode
Note
You can also create and delete VLANs in the VLAN configuration mode using these same commands.
Command History
Usage Guidelines
When you enter the
vlan
vlan-id
command, a new VLAN is created with all default parameters and
causes the CLI to enter VLAN configuration mode. If the
vlan-id
argument that you entered matches an
existing VLAN, nothing happens except that you enter VLAN configuration mode.
You can enter the
vlan-range
using a comma (
,
), a dash (
-
), and the number.
VLAN 1 parameters are factory configured and cannot be changed; you cannot create or delete this
VLAN. Additionally, you cannot create or delete VLAN 4095 or any of the internally allocated VLANs.
When you delete a VLAN, all the access ports in that VLAN are shut down and no traffic flows. On trunk
ports, the traffic continues to flow for the other VLANs allowed on that port, but the packets for the
deleted VLAN are dropped. However, the system retains all the VLAN-to-port mapping for that VLAN,
and when you reenable
,
or
recreate
,
that specified VLAN, the switch automatically reinstates all the
original ports to that VLAN.
In Cisco NX-OS 5.0(2)N1(1), you can configure VLANs on a device configured as a VLAN Trunking
Protocol (VTP) server or transparent device. If the VTP device is configured as a client, you cannot add
a VLAN or enter the VLAN configuration mode.
vlan-id
Number of the VLAN. The range is from 1 to 4094.
Note
You cannot create, delete, or modify VLAN 1 or any of the internally
allocated VLANs.
vlan-range
Range of configured VLANs; see the “Usage Guidelines” section for a list of
valid values.
Release
Modification
5.2(1)N1(1)
This command we introduced.