Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

VLAN name
Shutdown or not shutdown
When you delete a specified VLAN, the ports associated to that VLAN are shut down and no traffic flows.
However, the system retains all the VLAN-to-port mapping for that VLAN, and when you reenable, or recreate,
the specified VLAN, the system automatically reinstates all the original ports to that VLAN.
Commands entered in the VLAN configuration submode are immediately executed.
VLANs 3968 to 4047 and 4094 are reserved for internal use; these VLANs cannot be changed or used.
Note
Configuring a VLAN
Creating and Deleting a VLAN
You can create or delete all VLANs except the default VLAN and those VLANs that are internally allocated
for use by the switch. Once a VLAN is created, it is automatically in the active state.
When you delete a VLAN, ports associated to that VLAN shut down. The traffic does not flow and the
packets are dropped.
Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Creates a VLAN or a range of VLANs.switch(config)# vlan
{vlan-id | vlan-range}
Step 2
If you enter a number that is already assigned to a VLAN, the switch
puts you into the VLAN configuration submode for that VLAN. If
you enter a number that is assigned to an internally allocated VLAN,
the system returns an error message. However, if you enter a range
of VLANs and one or more of the specified VLANs is outside the
range of internally allocated VLANs, the command takes effect on
only those VLANs outside the range. The range is from 2 to 4094;
VLAN1 is the default VLAN and cannot be created or deleted. You
cannot create or delete those VLANs that are reserved for internal
use.
Deletes the specified VLAN or range of VLANs and removes you
from the VLAN configuration submode. You cannot delete VLAN1
or the internally allocated VLANs.
switch(config-vlan)# no
vlan {vlan-id | vlan-range}
Step 3
This example shows how to create a range of VLANs from 15 to 20:
switch# configure terminal
switch(config)# vlan 15-20
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
82 OL-16597-01
Configuring VLANs
Configuring a VLAN