Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
6-5
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 6 Configuring VLANs
Configuring a VLAN
Note You can also create and delete VLANs in the VLAN configuration submode.
To delete a VLAN, perform this task:
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
Note 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; see the “Understanding VLAN Ranges”
section on page 6-2 for complete information.
To enter the submode and configure the VLAN, perform this task:
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
Command Purpose
switch(config-vlan)# no vlan {vlan-id |
vlan-range}
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.
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# vlan {vlan-id |
vlan-range}
Enters VLAN configuration submode. If the VLAN
does not exist, the system first creates the specified
VLAN.
Step 3
switch(config-vlan)# name vlan-name
Names the VLAN. You can enter up to 32
alphanumeric characters to name the VLAN. You
cannot change the name of 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.
Step 4
switch(config-vlan)# no shutdown
Enables the VLAN. The default value is no shutdown
(or enabled). You cannot shut down the default
VLAN, VLAN1, or VLANs 1006 to 4094.