port-name
Configures the names of individual ports or a group of ports.
Command Default
A port name is not configured.
Parameters
Modes
Interface configuration mode
Usage Guidelines
You can assign a port name to physical ports, virtual interfaces, and loopback interfaces. The port name can contain blank spaces. The port name can also contain special characters, but the percentage character (%) is dropped if it is the last character in the port name.
Examples
The following example assigns a name to a port.
device(config)# interface ethernet 1/1/1 device(config-if-e1000-1/1/1)# port-name Marsha
The following example assigns a name to a range of ports.
device(config)# interface ethernet 1/1/1 to 1/1/10 device(config-mif-1/1/1-1/1/10)# port-name connected-to-the nearest device