This example shows how to configure VLAN long-names of up to 128 characters.
switch#
configure terminal
switch(config)#
system vlan long-name
!2001 Sep 29 02:24:11 N72-3 %$ VDC-1 %$ %VLAN_MGR-2-CRITICAL_MSG: VLAN long name is Enabled!
switch(config)#
copy running config startup config
switch(config)#
show running-config | sec long-name
switch#
configure terminal
switch(config)#
vlan 2
switch(config-vlan)#
name
VLAN128Char000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002
switch(config-vlan)#
exit
switch#
show vlan id 2
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
2 VLAN128Char000000000000000040000 active
00000000000000000000000000000000
00000000000000000000000000000000
00000000000000000000000000000002
.
.
.
The following example displays the error output if you try to configure a VLAN long name of more than 128
characters.
switch#
system vlan long-name
switch(config)#
vlan 2
switch(config-vlan)#
name
129Char123456789000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000987654321CiscoBangalore
!% String exceeded max length of (128) at '^' marker.!
Switch(config-vlan)#
exit
The following example displays the error output if you try to configure VLAN name ( more than 32 characters)
without enabling the
system vlan long- name
command.
switch#
configure terminal
switch(config)#
vlan 2
switch(config-vlan)#
name 33Char1234567890987CiscoBangalore
!ERROR: Long VLAN name is not enabled: Vlan name greater than 32 is not allowed!
Switch(config-vlan)#
exit
Changing the Range of Reserved VLANs
To change the range of reserved VLANs, you must be in global configuration mode. After entering this
command, you must do the following tasks:
•
Enter the
copy running-config startup-config
command
•
Reload the device
Cisco Nexus 6000 Series NX-OS Layer 2 Switching Configuration Guide, Release 7.x
17
Configuring VLANs
Changing the Range of Reserved VLANs