Configuring a VLAN
switch(config)# copy running-config startup-config
switch(config)# reload
switch(config)# show system vlan reserved
You must reload the device for this change to take effect.
Note
Configuring a 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.
SUMMARY STEPS
1. switch# configure terminal
2. switch(config)# vlan {vlan-id | vlan-range}
3. switch(config-vlan)# name vlan-name
4. switch(config-vlan)# state {active | suspend}
5. (Optional) switch(config-vlan)# no shutdown
DETAILED STEPS
Command or Action
Step 1
switch# configure terminal
Step 2
switch(config)# vlan {vlan-id |
vlan-range}
Step 3
switch(config-vlan)# name vlan-name
Cisco Nexus 5000 Series NX-OS Layer 2 Switching Configuration Guide, Release 5.1(3)N1(1)
46
This requires copy running-config to startup-config before
switch reload.
Creating VLANs within this range is not allowed.
VLAN name can be either a short name (up to 32 characters) or long name (up to 128
Note
characters). To configure VLAN long-name of up to 128 characters, you must enable
system vlan long-name command.
Purpose
Enters global configuration mode.
Enters VLAN configuration submode. If the VLAN does not exist, the system
first creates the specified VLAN.
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 represents four numeric
digits (including leading zeroes) equal to the VLAN ID number.
Configuring VLANs
OL-25842-01