lldpd
See also: lldpd upstream documentation
The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices.
Abstract
An implementation of IEEE 802.1ab
lldpd (Link Layer Discovery Protocol daemon) daemon providing an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme's EDP (Extreme Discovery Protocol) and CDP (Cisco Discovery Protocol).
Configuration
LLDP frames are link-local frames, do not use any network interfaces other than the ones that achieve a link with its link partner, and the link partner being another networking device. Do not use bridge,VLAN, or DSA conduit interfaces.
Example /etc/config/lldpd
, start lldpd on all interfaces:
config lldpd config # lldp defaults to listening on all interfaces # Set class of device option lldp_class 4 # if empty, the distribution description is sent option lldp_description "OpenWrt System"
Usage
daemon must be running for lldpcli to work
View neighbors across each enabled interface.
lldpcli show neighbors
Get statistics about which interfaces are sending/receiving LLDP frames:
lldpcli show statistics
Known Issues
- lldpd unable to receive frames on mediatek due to bug: https://github.com/openwrt/openwrt/issues/13788