port-name

Configures the names of individual ports or a group of ports.
Syntax
port-name text
no port-name text
Command Default

A port name is not configured.

Parameters
text
Configures the name of the port or the name of a range of ports. The name is an alphanumeric string and can be up to 255 characters long.
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.

The no form of the command removes the assigned 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

The following example assigns a name to multiple ports.

device(config)# interface ethernet 1/1/1 ethernet 1/1/5 ethernet 1/1/7
device(config-mif-1/1/1,1/1/5,1/1/7)# port-name connected-to-the nearest device