Configuring a VLAN
To configure or modify the VLAN for the following parameters, you must be in the VLAN configuration
submode:
•
Name
VLAN name can be either a short name (up to 32 characters) or long name (up to 128
characters). To configure VLAN long-name of up to 128 characters, you must enable
system vlan long-name
command.
Note
•
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
Purpose
Command or Action
Enters global 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 represents 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
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
19
Configuring VLANs
Configuring a VLAN