LLDP in Linux Debian / Ubuntu
Install LLDP package
sudo apt-get install lldpd
systemctl status lldpd
lldpcli show neighbors
root@lab01xxx:~# lldpcli show neighbors
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface: eno1, via: LLDP, RID: 3, Time: 0 day, 00:00:43
Chassis:
ChassisID: mac 8c:dc:d4:ed:86:00
SysName: J9803A
SysDescr: HP 1810-24G, PL.1.9, eCos-3.0, 1_12_8-customized-h
MgmtIP: 10.10.3.205
Capability: Bridge, on
Port:
PortID: local 13
PortDescr: Port #13
TTL: 120
-------------------------------------------------------------------------------
Interface: ens1f0np0, via: LLDP, RID: 2, Time: 0 day, 00:00:55
Chassis:
ChassisID: mac 1c:ea:xx:xx:xx:xx
SysName: tenetxxxx
SysDescr: Linux version 4.3.0 running on Accton xxxx
MgmtIP: 10.255.xxx.xxx
MgmtIface: 1
MgmtIP: fe80::1eea:bff:fefe:c33d
MgmtIface: 2
Capability: Bridge, on
Capability: Router, on
Port:
PortID: ifname port11
PortDescr: stg-sfp01
TTL: 120
-------------------------------------------------------------------------------
Last updated