---
title: LLDP
slug: aidc/lldp
createdAt: 2025-12-01T11:11:06.000Z
---

## <font color="#1d50a2">LLDP View</font>

<font color="#1d05a2">Table 1 LLDP View</font>

| **Command**                                                      | **Purpose**                 |
| ---------------------------------------------------------------- | --------------------------- |
| **show lldp neighbor** \{*summary\|interface* *interface\_name*} | Display LLDP neighbors.     |
| **showlldp local** \{*summary\|interface* *interface\_name*}     | Display LLDP configuration. |

### <font color="#1d50a2">show lldp neighbor \{summary|interface *interface\_name*\}</font>

**\[Command]**
**show lldp neighbor** \{**summary**|**interface** *interface\_name*}

**\[Purpose]**
Display LLDP neighbors.

**\[Parameters]**

| **Parameter**     | **Description**         |
| ----------------- | ----------------------- |
| *interface\_name* | Interface name (eg.0/1) |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show lldp neighbor summary
Capability codes: (R) Router, (B) Bridge, (O) Other
LocalPort    RemoteDevice    RemotePortID    Capability    RemotePortDescr
-----------  --------------  --------------  ------------  -----------------
0/48         spine-228       C1              BR            Ethernet0
0/60         sonic       C6              BR            Ethernet68
0/72         sonic-102       C7              BR            0/72
--------------------------------------------------
Total entries displayed:  3
sonic# show lldp neighbor interface 0/48
-------------------------------------------------------------------------------
LLDP neighbors:
-------------------------------------------------------------------------------
Interface:    0/48      , via: LLDP, RID: 1, Time: 1 day, 08:51:31
  Chassis:
    ChassisID:    mac 18:17:25:37:65:40
    SysName:      spine-228
    SysDescr:     Debian GNU/Linux 9 (stretch) Linux 4.9.0-14-2-amd64 #1 SMP Debian 4.9.246-2 (2020-12-17) x86_64
    MgmtIP:       10.250.0.228
    MgmtIface:    2
    Capability:   Bridge, on
    Capability:   Router, on
    Capability:   Wlan, off
    Capability:   Station, off
  Port:
    PortID:       local C1
    PortDescr:    0/0
    TTL:          120
-------------------------------------------------------------------------------
```

### <font color="#1d50a2">show lldp local \{summary|interface *interface\_name*\}</font>

**\[Command]**
**show lldp local** \{**summary**|**interface** *interface\_name*}

**\[Purpose]**
Display LLDP configuration.

**\[Parameters]**

| **Parameter**     | **Description**         |
| ----------------- | ----------------------- |
| *interface\_name* | Interface name (eg.0/1) |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show lldp local summary
-------------------------------------------------------------------------------
Global configuration:
-------------------------------------------------------------------------------
Configuration:
  Transmit delay: 30
  Transmit delay in milliseconds: 30000
  Transmit hold: 4
  Maximum number of neighbors: 32
  Receive mode: no
  Pattern for management addresses: 10.250.0.171
  Interface pattern: Ethernet*,eth0
  Permanent interface pattern: (none)
  Interface pattern for chassis ID: eth0
  Override chassis ID with: (none)
  Override description with: SONiC Software Version: SONiC.V3.1R0406P01T08 - HwSku: CX532P-N - Distribution: Debian 11.10 - Kernel: 5.10.0-8-2-amd64
  Override platform with: Linux
  Override system name with: sonic
  Advertise version: yes
  Update interface descriptions: no
  Promiscuous mode on managed interfaces: no
  Disable LLDP-MED inventory: yes
  LLDP-MED fast start mechanism: yes
  LLDP-MED fast start interval: 1
  Source MAC for LLDP frames on bond slaves: local
  Port ID TLV subtype for LLDP frames: unknown
  Agent type:   unknown
-------------------------------------------------------------------------------
sonic# show lldp local interface 0/4
-------------------------------------------------------------------------------
LLDP interfaces:
-------------------------------------------------------------------------------
Interface:    Ethernet4, via: LLDP, Time: 0 day, 09:11:32
  Chassis:
    ChassisID:    mac 74:fe:48:7b:23:1a
    SysName:      sonic
    SysDescr:     SONiC Software Version: SONiC.V3.1R0406P01T08 - HwSku: CX532P-N - Distribution: Debian 11.10 - Kernel: 5.10.0-8-2-amd64
    MgmtIP:       10.250.0.171
    MgmtIface:    2
    Capability:   Bridge, on
    Capability:   Router, on
    Capability:   Wlan, off
    Capability:   Station, off
  Port:
    PortID:       local C2
    PortDescr:    Ethernet4
  TTL:          120
-------------------------------------------------------------------------------
```

## <font color="#1d50a2">LLDP Config</font>

<font color="#1d05a2">Table 2 LLDP Config</font>

| **Command**                                                     | **Purpose**                                                                                                        |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| **lldp&#x20;**\{**enable**\|**disable**}                        | Enable or disable LLDP globally.                                                                                   |
| **lldp message-transmission interval** *interval-time*          | Set the LLDP message sending interval.                                                                             |
| **lldp message-transmission hold** *hold-multiplier*            | Set the multiplier for LLDP messages hold time in neighboring devices.                                             |
| **lldp port-id-subtype** \{**local\|mac-addreess**\|**ifname**} | Set the subtype in LLDP messages.                                                                                  |
| **lldp management-address-advertisements enable**               | Advertise the management IP address in LLDP messages.                                                              |
| **lldp capabilities-advertisements enable**                     | Advertise the features supported and enabled by the device in the LLDP message                                     |
| **lldp admin-status** \{**tx**\|**rx**\|**txrx**\|**disable**}  | Set the operating mode of LLDP for the interface as send-only/receive-only/send and receive/ not send and receive. |

### <font color="#1d50a2">lldp \{enable|disable\}</font>

**\[Command]**
**lldp** \{**enable**|**disable**}

**\[Purpose]**
Enable or disable LLDP globally.

**\[View]**
Global Configuration View

**\[Use Cases]**

```plaintext
sonic(config)# lldp enable
```

### <font color="#1d50a2">lldp message-transmission interval *interval-time*</font>

**\[Command]**
**lldp message-transmission interval** *interval-time*

**\[Function]**&#x53;et the LLDP message sending interval.

**\[Parameters]**

| **Parameter**   | **Description**             |
| --------------- | --------------------------- |
| *interval-time* | Interval time, range 1-3600 |

**\[View]**
Global Configuration View

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# lldp message-transmission interval 10
```

### <font color="#1d50a2">lldp message-transmission hold *hold-multiplier*</font>

**\[Command]**
**lldp message-transmission hold** *hold-multiplier*

**\[Function]**&#x53;et the multiplier for LLDP messages hold time in neighboring devices.

**\[Parameters]**

| **Parameter**     | **Description**                      |
| ----------------- | ------------------------------------ |
| *hold-multiplier* | Multiplier of hold time, range 1-100 |

**\[View]**
Global Configuration View

**\[Notes]**
Calculation formula for multiplier of LLDP message hold time: TTL = Min (65535, (interval × hold))

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# lldp message-transmission hold 10
```

### <font color="#1d50a2">lldp port-id-subtype \{local|mac-addreess|ifname\}</font>

**\[Command]**
**lldp port-id-subtype** \{**local**|**mac-addreess**|**ifname**}

**\[Function]**&#x53;et the subtype in LLDP messages.

**\[View]**
Global Configuration View

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# lldp port-id-subtype local
```

### <font color="#1d50a2">lldp management-address-advertisements enable</font>

**\[Command]**
**lldp management-address-advertisements enable**

**\[Function]**&#x41;dvertise the management IP address in LLDP messages.

**\[View]**
Global Configuration View

**\[Notes]**
The default configuration is to enable management IP address advertisement.
Run command**no lldp management-address-advertisements enable** command to disable the advertisement of management IP address in LLDP messages.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# lldp management-address-advertisements enable
```

### <font color="#1d50a2">lldp capabilities-advertisements enable</font>

**\[Command]**
**lldp capabilities-advertisements enable**

**\[Function]**&#x41;dvertise the features supported and enabled by the device in the LLDP message

**\[View]**
Global Configuration View

**\[Notes]**
The default configuration is to enable LLDP capabilities-advertisements
Run command **no lldp capabilities-advertisements enable** to disable LLDP capabilities-advertisements.

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# lldp capabilities-advertisements enable
```

### <font color="#1d50a2">lldp admin-status \{tx|rx|txrx|disable\}</font>

**\[Command]**
**lldp admin-status** \{**tx**|**rx**|**txrx**|**disable**}

**\[Purpose]**
Set the operating mode of LLDP for the interface as send-only/receive-only/send and receive/not send and receive.

**\[View]**
Physical Interface Configuration View

**\[Notes]**
The default mode is **txrx**.

**\[Use Cases]**

```plaintext
sonic(config)# interface ethernet 0/0
sonic(config-if-0/0)# lldp admin-status rx
```

