You can create and delete VLANs in the VLAN configuration submode.
Note
Configuring VLAN Long-Name
If VTP is enabled, it must be in transparent or in off mode. VTP cannot be in client or server mode. For
more details about VTP, see the Configuring VTP chapter.
Note
Beginning with Cisco NX-OS Release 7.3(0)N1(1), the length of VLAN name that you can configure is
increased from 32 to 128 characters. In the earlier release version, you could configure the length of VLAN
name up to 32 characters.
Procedure
Step 1
configure terminal
Example:
switch# configure terminal
Enters global configuration mode.
Step 2
system vlan long-name
Example:
switch(config)# system vlan long-name
Allows you to configure the length of VLAN names up to 128 characters.
Enabling or disabling the
system vlan long-name
command will trigger a system log message that
will let you know if the VLAN long name is enabled or disabled.
Note
If you try to enable or disable the
system vlan long-name
command, when it is already enabled or disabled,
the system will throw error message. We recommend you view the status of the VLAN long-name knob before
enabling or disabling this command.
Use the
no
form of this command to disable this feature.
Step 3
(Optional)
copy running-config startup-config
Example:
switch(config)# copy running-config startup-config
Saves the change persistently through reboots and restarts by copying the running configuration to the startup
configuration.
Step 4
show running-config | sec long-name
Example:
switch(config)# show running-config | sec long-name
Displays the VLAN long-name status information.
When you configure a VLAN name of more than 32 characters, the
show vlan
commands will show
the output in mulitple lines with each line containing a maximum of 32 characters.
Note
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
16
Configuring VLANs
Configuring VLAN Long-Name