port-name (LAG)

Assigns a port name to an individual port in a LAG.
Syntax
port-name name ethernet stackid/slot/port
no port-name name ethernet stackid/slot/port
Command Default

A port name is not assigned to an individual port within a LAG.

Parameters
name
Specifies the name of an individual port in a LAG. The name can be up to 255 characters in length.
ethernet stackid/slot/port
Specifies the Ethernet port to which the name must be assigned.
Modes

LAG configuration mode

Usage Guidelines

When creating a port name in a LAG, you can use all uppercase or lowercase characters, as well as digits. Special characters (such as $, %, ', -, ., @, ~, `, !, (, ), {, }, ^, #, and &) are valid. You can use spaces in the port name as long as you enclose the name in double quotation marks. For example, to specify a port name that contains spaces, enter a string similar to the following example: "a long and lengthy port name".

Note: A port name with spaces must be enclosed within double quotation marks.

The no form of the command removes the name assigned to the individual port.

Examples

The following example shows how to assign a name to a port in a LAG.

device(config)# lag "test" dynamic id 1
device(config-lag-test)# ports ethernet 1/1/1 to 1/1/3
device(config-lag-test)# port-name "lag1" ethernet 1/1/1