Feature History for LLDP

This table provides release and related information for features explained in this module.

These features are available on all releases subsequent to the one they were introduced in, unless noted otherwise.

Release

Feature Name and Description

Supported Platform

Cisco IOS XE 17.18.1

Link Layer Discovery Protocol (LLDP) is an Layer 2 protocol that enables network devices to advertise their identity, capabilities, and connectivity information to directly connected devices.

Cisco C9350 Series Smart Switches

Cisco C9610 Series Smart Switches

Configure LLDP

Follow these steps to configure LLDP on your switch:

Before you begin

You must have privileged EXEC mode access to the switch.

Procedure

  Command or Action Purpose

Step 1

Switch# enable

Enables privileged EXEC mode. Enter your password if prompted

Step 2

Switch# configure terminal

Enters global configuration mode.

Step 3

Switch(config)# lldp run

Enables LLDP globally on the switch. This command allows the LLDP process to start running on the device.

Step 4

Switch(config)# interface GigabitEthernet0/1

Specifies the interface on which to configure LLDP, and enters interface configuration mode. Replace type and number with your specific interface (e.g., GigabitEthernet0/1, FastEthernet0/5).

Step 5

Switch(config-if)# lldp transmit

Configures the interface to send LLDPDUs.

Step 6

Switch(config-if)# lldp receive

Configures the interface to receive LLDPDUs. <br>Note: For full bidirectional discovery, you typically configure both lldp transmit and lldp receive on the interface. The lldp transmit receive command is a shortcut for both.

Step 7

Switch(config-if)# end

Returns to privileged EXEC mode.

Step 8

Switch# copy running-config startup-config

Saves the running configuration to the startup configuration. This ensures that your LLDP configuration is retained after a switch reload. <br>Press Enter when prompted to confirm the destination filename.

Verify LLDP

After configuring LLDP, use these commands in privileged EXEC mode to verify its operation:

Table 1: Commands for displaying LLDP status

Command Purpose Example Output
show lldp Displays the global LLDP status, including whether it's enabled and the default timer values.

LLDP is enabled

LLDP advertisements are sent every 30 seconds

LLDP hold time is 120 seconds

show lldp interface [type number] Shows LLDP status for all interfaces or a specific interface, indicating whether transmit and receive are enabled.

GigabitEthernet0/1:

Tx: enabled

Rx: enabled

FastEthernet0/5 is not being advertised)

show lldp neighbors Displays a summary of discovered LLDP neighbors, including their local port, device ID, and remote port ID.

Device ID Local Intf Hold-time Capabilities Port ID

---

Router1 Gig 0/1 120 R, B GigabitEthernet0/0

IPPhone Gig 0/2 120 T MAC:aabb.ccdd.eeff

show lldp neighbors detail Provides detailed information about all discovered LLDP neighbors, including all advertised TLVs (system name, description, capabilities, management IP, etc.).

---

Chassis id: 0011.2233.4455

Port id: GigabitEthernet0/0

Port Description: Uplink to Switch

System Name: Router1

System Description: Cisco IOS Software

show lldp entry [device-id] Displays detailed LLDP information for a specific neighbor. (Similar detailed output as show lldp neighbors detail but filtered for a single device.)