lldp advertise port-id-subtype

Specifies the Link Layer Discovery Protocol (LLDP) port ID subtype information to advertise as the port ID.
Syntax
lldp advertise port-id-subtype num ports {all| [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }
no lldp advertise port-id-subtype num ports {all| [ ethernet unit/slot/port [ to unit/slot/port ] ... ] }
Command Default

By default, the port ID subtype to advertise is set to 3.

Parameters
num
Specifies the port ID subtype to advertise. The subtype determines the specific information that is advertised as the port ID.
1
Causes interface alias information, taken from the ifAlias MIB object, to be advertised as the port ID.
3
Causes the MAC address to be advertised as the port ID. This is the default value.
5
Causes interface name information, taken from the ifName MIB object, to be advertised as the port ID.
7
Causes a locally assigned value (as defined by RFC 2863) to be displayed as the port ID. RUCKUS devices display information taken from the ifIndex MIB object.
ports
Specifies the LLDP-capable ports for which the LLDP port ID subtype is to be advertised.
all
Causes the advertisement of the port ID subtype for all LLDP-capable ports on the device.
ethernet unitslot/port
Causes the advertisement of the port ID subtype for a specific Ethernet port. When immediatly followed by the to option, this option specifies the first port in a range of Ethernet ports.
to unit/slot/port
Causes the advertisement of the port ID subtype for a range of Ethernet ports and specifies the last port in the range.
Note: You can specify the advertisement of an LLDP port ID subtype for a range of Ethernet ports (for example, ethernet 1/1/1 to ethernet 1/1/4), or for a list of Ethernet ports (for example, ethernet 1/2/1 ethernet 1/2/2), or you can combine a range with a list (for example, ethernet 1/1/1 to ethernet 1/1/4 ethernet 1/1/1 ethernet 1/1/2).
Modes

Global configuration mode

Usage Guidelines

The LLDP port ID subtype advertises previously configured information. To ensure that the physical location of a port is available for advertisement when the port ID subtype to advertise is set to 1, 5, or 7, the port location must first be configured by using the lldp med location-id civic-address, lldp med location-id coordinate-based, or lldp med location-id ecs-elin command.

You can specify a list of ports, separated by a space, or a range of ports, or you can combine lists and ranges.

The command cannot support LAG virtual interfaces. Attempting to configure them will have no effect.

The no form of the command restores the port ID subtype advertised to the default value for specific ports.

Examples

The following example shows how to advertise the interface alias (port ID subtype 1) as the port ID for two individual ports (1/2/1 and 1/2/2) and for a range of ports (1/1/1 to 1/1/4).

device(config)# lldp advertise port-id-subtype 1 ports ethernet 1/2/1 ethernet 1/2/2 ethernet 1/1/1 to 1/1/4
History
Release version Command history
08.0.50 This command was introduced.