This chapter describes the Cisco NX-OS Ethernet and virtual Ethernet commands that begin with N.
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.
|
|
---|---|
You cannot change the name for the default VLAN, VLAN 1, or for the internally allocated VLANs.
This example shows how to name VLAN 2:
switch(config)#
vlan 2
switch(
config-vlan)#
name accounting
|
|
---|---|
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 to assign to the MST region. It can be any string with a maximum length of 32 alphanumeric characters. |
|
|
---|---|
Two or more switches with the same VLAN mapping and configuration version number are considered to be in different MST regions if the region names are different.
This example shows how to name a region:
switch(config)#
spanning-tree mst configuration
switch(
config-mst)#
name accounting
|
|
---|---|
To configure the interface as a Layer 3 Ethernet interface, use the no switchport command.
|
|
---|---|
You can configure any Ethernet port as a routed interface. When you configure an interface as a Layer 3 interface, any configuration specific to Layer 2 on this interface is deleted.
If you want to configure a Layer 3 interface for Layer 2, enter the switchport command. Then, if you change a Layer 2 interface to a routed interface, enter the no switchport command.
This example shows how to enable an interface as a Layer 3 routed interface:
This example shows how to configure a Layer 3 interface as a Layer 2 interface:
|
|
---|---|
Saves the running configuration to the startup configuration file. |
|