From VyOS Wiki
Jump to: navigation, search
Warning sign.png This page is migrated to Readthedocs .
Information found on this page is migrated to readthedocs and information found here could be outdated or misleading. https://vyos.readthedocs.io/en/latest/services/lldp.html


The Link Layer Discovery Protocol (LLDP) is a vendor-neutral link layer protocol in the Internet Protocol Suite used by network devices for advertising their identity

Enable service

Enable service with

set service lldp 


Define management-address:

set service lldp management-address <x.x.x.x>

Define listening interfaces:

set service lldp interface
> all          Location data all interfaces
> <intf>       Location data for a specific interface

lldpd also implements an SNMP subagent. To Enable SNMP queries of the LLDP database:

set service lldp snmp enable

Display neighbors

Display with:

show lldp neighbors


vyos@vyos:~# show lldp neighbors
Capability Codes: R - Router, B - Bridge, W - Wlan r - Repeater, S - Station
                 D - Docsis, T - Telephone, O - Other
Device ID                 Local  Proto  Cap   Platform             Port ID
---------                 -----  -----  ---   --------             -------
swA309                    eth0   LLDP   ?     Cisco IOS Software,  GigE0/33


 detail        Show lldp neighbors detail
 interface     Show LLDP for specified interface

support for other protocols

To enable cdp:

set service lldp legacy-protocols cdp

The lldpd daemon support

  • cdp Listen for CDP for Cisco routers/switches
  • edp Listen for EDP for Extreme routers/switches
  • fdp Listen for FDP for Foundry routers/switches
  • sonmp Listen for SONMP for Nortel routers/switches


Use operationnal command show log lldp to display logs.

For more details:

  • The lldp daemon used by VyOS is lldpd. Check man page for more details.
  • neighbors are displayed through lldpctl command.