Displaying LLDP Neighbors

You can use the below commands to verify LLDP information:

Reference

Command

show lldp neighbors

Description

Display LLDP neighbors

Parameters

None

Mode

EXEC

Example

pbnoscli# show lldp neighbors
Capability codes: (R) Router, (B) Bridge, (O) Other
LocalPort    RemoteDevice    RemotePortID    Capability    RemotePortDescr
-----------  --------------  --------------  ------------  -----------------
Ethernet1/1  sonic           etp1            BR            Ethernet0
Ethernet2/1  sonic           etp2            BR            Ethernet4
Ethernet3/1  sonic           etp3            BR            Ethernet8
Ethernet13/1 sonic           hundredGigE13   BR            Ethernet48
Ethernet14/1 sonic           hundredGigE14   BR            Ethernet52
Ethernet15/1 sonic           hundredGigE15   BR            Ethernet56
eth0         HP2848          12              B             12
--------------------------------------------------
Total entries displayed:  7
pbnoscli#  

To display the LLDP neighbor's information in detail, use the following command:

Reference

Command

show lldp neighbors detail

Description

Display LLDP neighbors in detail

Parameters

None

Mode

EXEC

Example

pbnoscli# show lldp neighbors detail
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface:    eth0, via: LLDP, RID: 1, Time: 0 day, 10:12:31
  Chassis:     
    ChassisID:    mac 00:0e:7f:01:2f:00
    SysName:      HP2848
    SysDescr:     ProCurve J4904A Switch 2848, revision I.10.105, ROM I.08.07 (/sw/code/build/mako)
    Capability:   Bridge, on
    Capability:   Router, off
  Port:        
    PortID:       local 12
    PortDescr:    12
    TTL:          120
-------------------------------------------------------------------------------
<...>
-------------------------------------------------------------------------------
Interface:    Ethernet15/1, via: LLDP, RID: 3, Time: 0 day, 10:12:20
  Chassis:     
    ChassisID:    mac 80:a2:35:57:49:a7
    SysName:      sonic
    SysDescr:     SONiC Software Version: SONiC.master.0-dirty-20230123.005620 - HwSku: Accton-AS7712-32X - Distribution: Debian 10.13 - Kernel: 4.19.0-12-2-amd64
    MgmtIP:       10.4.4.56
    Capability:   Bridge, on
    Capability:   Router, on
    Capability:   Wlan, off
    Capability:   Station, off
  Port:        
    PortID:       local hundredGigE15
    PortDescr:    Ethernet56
    TTL:          120
-------------------------------------------------------------------------------
pbnoscli# 
pbnoscli# show lldp neighbors detail interface Ethernet2/1
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface:    Ethernet2/1, via: LLDP, RID: 2, Time: 0 day, 10:13:33
  Chassis:     
    ChassisID:    mac 04:3f:72:da:74:ee
    SysName:      sonic
    SysDescr:     SONiC Software Version: SONiC.master.0-8202018d - HwSku: ACS-MSN3700C - Distribution: Debian 11.6 - Kernel: 5.10.0-8-2-amd64
    MgmtIP:       10.4.4.52
    Capability:   Bridge, on
    Capability:   Router, on
    Capability:   Wlan, off
    Capability:   Station, off
  Port:        
    PortID:       local etp2
    PortDescr:    Ethernet4
    TTL:          120
-------------------------------------------------------------------------------
pbnoscli#