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

You can also create and delete VLANs in the VLAN configuration submode.Note
Entering the VLAN Submode and Configuring the VLAN
To configure or modify the VLAN for the following parameters, you must be in the VLAN configuration
submode:
Name
Shut down
You cannot create, delete, or modify the default VLAN or the internally allocated VLANs. Additionally,
some of these parameters cannot be modified on some VLANs.
Note
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Enters VLAN configuration submode. If the VLAN does not
exist, the system first creates the specified VLAN.
switch(config)# vlan {vlan-id
| vlan-range}
Step 2
Names the VLAN. You can enter up to 32 alphanumeric
characters to name the VLAN. You cannot change the name of
switch(config-vlan)# name
vlan-name
Step 3
VLAN1 or the internally allocated VLANs. The default value is
VLANxxxx where xxxx represent four numeric digits (including
leading zeroes) equal to the VLAN ID number.
Sets the state of the VLAN to active or suspend. While the VLAN
state is suspended, the ports associated with this VLAN are shut
switch(config-vlan)# state
{active | suspend}
Step 4
down, and that VLAN does not pass any traffic. The default state
is active. You cannot suspend the state for the default VLAN or
VLANs 1006 to 4094.
(Optional)
Enables the VLAN. The default value is no shutdown (or
enabled). You cannot shut down the default VLAN, VLAN1, or
VLANs 1006 to 4094.
switch(config-vlan)# no
shutdown
Step 5
This example shows how to configure optional parameters for VLAN 5:
switch# configure terminal
switch(config)# vlan 5
switch(config-vlan)# name accounting
switch(config-vlan)# state active
switch(config-vlan)# no shutdown
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 83
Configuring VLANs
Entering the VLAN Submode and Configuring the VLAN