Configuring the LLDP port ID subtype to advertise

The Link Layer Discovery Protocol (LLDP) port ID subtype determines the specific information that is advertised as the port ID. You can configure the LLDP port ID subtype to advertise for a specific port, for a range of ports, or for all LLDP-capable ports.
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 is configured by using the lldp med location-id civic-address, lldp med location-id coordinate-based, or lldp med location-id ecs-elin command.
By default, the LLDP port ID subtype to advertise is set to 3 and the MAC address is advertised as the port ID. Complete the following steps to configure the advertisement of an alternate port ID subtype.
  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
    
  2. Specify the LLDP port ID subtype to advertise.
    Port ID subtype 1 advertises the interface alias (taken from the ifAlias MIB object) as the port ID. The following example shows how to advertise port ID subtype 1 for interface 1/2/4.
    device(config)# lldp advertise port-id-subtype 1 ports ethernet 1/2/4
    
  3. To view the port ID information that is advertised, use a show command such as show lldp neighbors detail on an LLDP neighbor device. In the following example, the advertised port ID is "Building2Floor5Cube2500".
    device# show lldp neighbors detail 
    
    Local port: 1/2/4
      Neighbor: 748e.f8f9.55b1, TTL 94 seconds
        + Chassis ID (MAC address): 748e.f8f9.5580
        + Port ID (interface alias): Building2Floor5Cube2500
    	   + Time to live: 120 seconds
        + System name         : "ICX7550SP-ADV Router"
        + Port description    : "GigabitEthernet20"
        + System capabilities : bridge
          Enabled capabilities: bridge
        + 802.3 MAC/PHY          : auto-negotiation enabled
          Operational MAU type   : 100BaseTX-FD
        + Link aggregation: not capable
        + Maximum frame size: 1522 octets
        + Port VLAN ID: 1
        + Management address (IPv4): 10.20.159.105
    
    The Port ID shown in this example (Building2Floor5Cube2500) was previously configured by using the port-name command in interface configuration mode.