By default LLDP is disabled on all Cisco devices. To use LLDP on a Cisco device, you need to globally enable LLDP and allow the interface to transmit/receive LLDP packets.
From <https://www.grandmetric.com/knowledge-base/design_and_configure/lldp-configuration-example-cisco/>
To GLOBALLY enable & disable LLDP:
Switch# configure terminal
Switch(config)# lldp run
Or
Switch(config)# no lldp run
To activate LLDP to transmit/receive on the INTERFACE:
Switch# configure terminal
Switch(config)# interface GigabitEthernet 1/1
Switch(config-if)# lldp transmit
Switch(config-if)# lldp receive
Switch(config-if)# end
To transmit LLDP packets only:
Switch# configure terminal
Switch(config)# no lldp receive
To configure LLDP frequency reorting:
Switch# configure terminal
Switch(config)# lldp holdtime 120
Switch(config)# lldp reinit 2
Switch(config)# lldp timer 30
To Verify/clear syntax:
switch# show lldp
switch# show lldp traffic
switch# show lldp entry entry
switch# show lldp interface interface-id
switch# show lldp neighbors interface-id
switch# show lldp errors
switch(config-if)# show lldp interface <ethernet G1//1/>
switch# clear lldp counters
switch# clear lldp table
From <https://ipcisco.com/lesson/lldp-configuration-on-cisco-ios/>
References:
- LLDP configuration example (Cisco)
https://www.grandmetric.com/knowledge-base/design_and_configure/lldp-configuration-example-cisco/ - Cisco Nexus 9000 Series NX-OS System Management Configuration Guide, Release 10.1(x)
https://www.cisco.com/c/en/us/td/docs/dcn/nx-os/nexus9000/101x/configuration/system-management/cisco-nexus-9000-series-nx-os-system-management-configuration-guide-101x/m-configuring-lldp.html - LLDP Configuration on Cisco IOS
https://ipcisco.com/lesson/lldp-configuration-on-cisco-ios/