Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
2-103
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet Commands
vlan (EXEC mode)
vlan (EXEC mode)
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, use the no form of this command.
vlan {vlan-id | vlan-range}
no vlan {vlan-id | vlan-range}
Syntax Description
Command Default None
Command Modes 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.
Examples This example shows how to add a new VLAN and enter VLAN configuration mode:
switch(config)# vlan 2
switch(config-vlan)#
vlan-id Number of the VLAN; the range of valid values 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 theUsage Guidelines” section for a list of
valid values.
Release Modification
4.0(0)N1(1a) This command was introduced.