The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
To set the name for a VLAN, use the name command. To remove the user-configured name from a VLAN, use the no form of this command.
name vlan-name
no name
vlan-name |
Name of the VLAN; you can use up to 32 alphanumeric, case-sensitive characters.
|
The vlan-name argument is VLANxxxx where xxxx represents four numeric digits (including leading zeros) equal to the VLAN ID number.
VLAN configuration submode
Supported User Roles
network-admin
vdc-admin
Release |
Modification |
---|---|
4.0 |
This command was introduced. |
The name must be unique within the VDC, and the same name can be reused in a separate VDC.
You cannot change the name for the default VLAN, VLAN 1, or for the internally allocated VLANs.
This command does not require a license.
This example shows how to name VLAN 2:
switch(config)# vlan 2 switch(config-vlan)# name accounting switch(config-mst)#
Command |
Description |
---|---|
show vlan |
Displays VLAN information. |
To set the name of a Multiple Spanning Tree (MST) region, use the name command. To return to the default name, use the no form of this command.
name name
no name name
name |
Name to assign to the MST region. It can be any string with a maximum length of 32 alphanumeric characters. |
None
MST configuration submode
Supported User Roles
network-admin
vdc-admin
Release |
Modification |
---|---|
4.0 |
This command was introduced. |
Two or more devices with the same VLAN mapping and configuration version number are considered to be in different MST regions if the region names are different.
Caution | Be careful when using the name command to set the name of an MST region. If you make a mistake, you can put the device in a different region. The configuration name is a case-sensitive parameter. |
This command does not require a license.
This example shows how to name a region:
switch(config)# spanning-tree mst configuration switch(config-mst)# name accounting switch(config-mst)#
Command |
Description |
---|---|
show spanning-tree mst configuration |
Displays information about the MST protocol. |
spanning-tree mst configuration |
Enters MST configuration submode. |