LLDP

From securityrouter.org, an OpenBSD-based firewall
Jump to: navigation, search

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, capabilities, and neighbors on an IEEE 802 local area network, principally wired Ethernet.

Announcement

You can enable LLDP announcements globally

system {
   lldp-server

or per interface, like

interface em0 {
   lldp

Please note that enabling LLDP on one interface will automatically disable global announcements. In other words; you can either choose to announce on all interfaces, or you need to enable it specifically on all interfaces which you want it running on.

Discovery

The system can also collect LLDP information from other devices, by enabling

system {
   lldp-server {
      receive

which is shown by running the CLI command

[email protected]> show lldp
Capability Codes:
	r - Repeater, B - Bridge, H - Host, R - Router, S - Switch,
	W - WLAN Access Point, C - DOCSIS Device, T - Telephone, O - Other

Device ID                      Local Intf    Proto   Hold-time    Capability    Port ID

CDP

Because CDP is a proprietary protocol, its't not included in our software. You can however enable it manually using root access and skeleton files by starting the ladvd command with extra flags.