LLDP

From VyOS Wiki
Jump to: navigation, search

Description

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 

Options

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

Exemple:

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

Options:

 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

Troubleshooting

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.