# LLDP

## nv show interface lldp

Shows LLDP information such as the speed, type, remote host, and remote port for all configured interfaces.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv show interface lldp
    Interface  Speed  Type  Remote Host      Remote Port
    ---------  -----  ----  ---------------  -----------------
    eth0       1G     eth   oob-mgmt-switch  swp10
    swp1       1G     swp   server01         48:b0:2d:76:ee:8e
    swp2       1G     swp   server02         48:b0:2d:86:c1:f8
    swp3       1G     swp   server03         48:b0:2d:08:de:37
    swp49      1G     swp   leaf02           swp49
    swp50      1G     swp   leaf02           swp50
    swp51      1G     swp   spine01          swp1
    swp52      1G     swp   spine02          swp1
    swp53      1G     swp   spine03          swp1
    swp54      1G     swp   spine04          swp1

## nv show interface lldp-detail

Shows detailed LLDP information for all configured interfaces.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv show interface lldp-detail
    -------------------------------------------------------------------------------
    LLDP neighbors:
    -------------------------------------------------------------------------------

    Interface:    eth0
    -------------------------------------------------------------------------------
      Time:
        0 days, 00:02:34

      Chassis:
        ChassisID:    mac 48:b0:2d:00:00:01
        SysName:      oob-mgmt-switch
        SysDescr:     Cumulus Linux version 5.5.1 running on QEMU Standard PC (i440FX + PIIX, 1996)
        MgmtIP:       192.168.200.251
        MgmtIface:    ifname
        MgmtIP:       fe80::4ab0:2dff:fe00:1
        MgmtIface:    ifname
        Capability:   Bridge, off
        Capability:   Router, off
      Port:
        PortID:       ifname swp10
        PortDescr:    swp10
        TTL:          120
        Port is aggregated. PortAggregID: -
        PMD autoneg:  supported: {}, enabled: {}
          MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
      LLDP-MED:
        Device Type:  Network Connectivity Device
        Capability:   capabilities, yes
        Capability:   inventory, yes
        Capability:   location, yes
        Capability:   mdi-pd, yes
        Capability:   mdi-pse, yes
        Capability:   policy, yes

    Interface:    swp1
    -------------------------------------------------------------------------------
      Time:
        0 days, 00:02:22

      Chassis:
        ChassisID:    mac 44:38:39:22:01:7e
        SysName:      server01
        SysDescr:     Ubuntu 18.04.6 LTS Linux 4.15.0-200-generic #211-Ubuntu SMP Thu Nov 24 18:16:04 UTC 2022 x86_64
        MgmtIP:       192.168.200.31
        MgmtIface:    mac
        MgmtIP:       fe80::4638:39ff:fe22:17e
        MgmtIface:    mac
        Capability:   Bridge, off
        Capability:   Router, off
      Port:
        PortID:       ifname 48:b0:2d:76:ee:8e
        PortDescr:    eth1
        TTL:          120
        Port is aggregated. PortAggregID: -
        PMD autoneg:  supported: {'0': {'flags': {'fd': {}, 'hd': {}}, 'type': '10Base-T'}, '1': {'flags': {'fd': {}, 'hd': {}}, 'type': '100Base-TX'}, '2': {'flags': {'fd': {}}, 'type': '1000Base-T'}}, enabled: {'is-enabled': {}, 'is-supported': {}}
          MAU oper type: 1000BaseTFD - Four-pair Category 5 UTP, full duplex mode
      LLDP-MED:
        Device Type:
    ...

## nv show interface <interface-id> lldp

Shows LLDP configuration settings for the specified interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp
                        operational  applied  pending
    -------------------  -----------  -------  -------
    dcbx-ets-config-tlv  off
    dcbx-ets-recomm-tlv  off
    dcbx-pfc-tlv         off
    [neighbor]           server01

## nv show interface <interface-id> lldp application-tlv

Shows all application priority TLV configuration on the switch.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv
                operational  applied
    ----------  -----------  ---------
    [udp-port]  4317         4317
    [tcp-port]  4217         4217
    [app]       NVME_4420    NVME_4420
    [app]       NVME_8009    NVME_8009
    [app]       iSCSI        iSCSI

## nv show interface <interface-id> lldp application-tlv app

Shows the application names that have application priority TLVs enabled for the interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv app
    AppName
    ---------
    NVME_4420
    NVME_8009
    iSCSI

## nv show interface <interface-id> lldp application-tlv app <app-id>

Shows application details for the LLDP application TLV on the interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<app-id>` | The application name.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv app iSCSI

## nv show interface <interface-id> lldp application-tlv tcp-port

Shows the TCP port priority mapping for the interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv tcp-port
    Ports
    -----
    4217

## nv show interface <interface-id> lldp application-tlv tcp-port <port-id>

Shows information about the TCP port priority mapping for the interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<port-id>` | The TCP port ID.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv tcp-port 4217

## nv show interface <interface-id> lldp application-tlv udp-port

Shows the UDP port priority mapping for the interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv udp-port
    Ports
    -----
    4317

## nv show interface <interface-id> lldp application-tlv udp-port <port-id>

Shows information about the UDP port priority mapping for the interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<port-id>` | The UDP port ID.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp application-tlv udp-port 4317

## nv show interface <interface-id> lldp neighbor

Shows information about all the LLDP neighbors for the specified interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.

### Version History

Introduced in Cumulus Linux 5.1.0

### Example

    cumulus@switch:~$ nv show interface swp51 lldp neighbor
    Neighbor  Remote IP     Model  SW Version  Remote Port
    --------  ------------  -----  ----------  -----------
    spine01   10.10.10.101                     swp1

## nv show interface <interface-id> lldp neighbor <neighbor-id>

Shows statistics for a specific LLDP neighbor for the specified interface.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<neighbor-id>` | The LLDP neighbor name.

### Version History

Introduced in Cumulus Linux 5.1.0

### Example

    cumulus@switch:~$ nv show interface swp51 lldp neighbor spine01
                               operational                                                    applied  pending
    -------------------------  ------------------------------------------------------------…  -------  -------
    age                        323055
    bridge
      [vlan]
    chassis
      chassis-id               44:38:39:22:01:82
      management-address-ipv4  10.10.10.101
      management-address-ipv6  fe80::4638:39ff:fe22:182
      system-description       Cumulus Linux version 5.5.0 running on QEMU Standard PC
                               (i440FX + PIIX, 1996)
      system-name              spine01
    lldp-med
      device-type              Network Connectivity Device
    port
      description              swp1
      name                     swp1
      ttl                      120
      type                     ifname
      pmd-autoneg
        [advertised]
        mau-oper-type          1000BaseTFD - Four-pair Category 5 UTP, full duplex mode

## nv show interface <interface-id> lldp neighbor <neighbor-id> bridge

Shows bridge information for the specified LLDP neighbor.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<neighbor-id>` | The LLDP neighbor name.

### Version History

Introduced in Cumulus Linux 5.1.0

### Example

    cumulus@switch:~$ nv show interface swp51 lldp neighbor spine01 bridge
           operational  applied  pending
    ------  -----------  -------  -------
    [vlan]

## nv show interface <interface-id> lldp neighbor <neighbor-id> bridge vlan

Shows the VLANs for the specified LLDP neighbor.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<neighbor-id>` | The LLDP neighbor name.

### Version History

Introduced in Cumulus Linux 5.1.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp neighbor leaf02 bridge vlan

## nv show interface <interface-id> lldp neighbor <neighbor-id> bridge vlan <vid>

Shows information about a specific VLAN for the specified LLDP neighbor.

### Command Syntax

Syntax | Description
--- | ---
`<interface-id>` | The interface name.
`<neighbor-id>` | The LLDP neighbor name.
`<vlan-id>` | The VLAN name.

### Version History

Introduced in Cumulus Linux 5.1.0

### Example

    cumulus@switch:~$ nv show interface swp1 lldp neighbor leaf02 bridge vlan 10

## nv show system lldp

Shows global LLDP configuration, such as the LLDP mode, and LLDP timers and if 802.1 TLV transmission is on or off. By default, 802.1 TLV transmission is off and the switch sends all LLDP frames without 802.1 TLVs.

In Cumulus Linux 5.14 and earlier, this command is `nv show service lldp`.

### Version History

Introduced in Cumulus Linux 5.0.0

### Example

    cumulus@switch:~$ nv show system lldp
                            operational  applied  pending
    ----------------------  -----------  -------  -------
    dot1-tlv                off          off      off
    lldp-med-inventory-tlv  off          off      off
    mode                    default      default  default
    tx-hold-multiplier      4            4        4
    tx-interval             30           30       30

## nv show system lldp application-tlv

Shows all application priority TLV configuration on the switch.

In Cumulus Linux 5.14 and earlier, this command is `nv show service lldp application-tlv`.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv
    udp-port
    ===========
        Port  priority
        ----  --------
        4317  4

    tcp-port
    ===========
        Port  priority
        ----  --------
        4217  6
    app
    ======
        AppName    priority
        ---------  --------
        NVME_4420  5
        NVME_8009  7
        iSCSI      3

## nv show system lldp application-tlv app

Shows the application priority mapping.

In Cumulus Linux 5.14 and earlier, this command is `nv show service llldp application-tlv app`.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv app
    AppName    priority
    ---------  --------
    NVME_4420  5
    NVME_8009  7
    iSCSI      3

## nv show system lldp application-tlv app <app-id>

Shows the priority mapping for the specified application.

In Cumulus Linux 5.14 and earlier, this command is `nv show service llldp application-tlv app <app-id>`.

### Command Syntax

Syntax | Description
--- | ---
`<app-id>` | The application name.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv app iSCSI
              operational  applied
    --------  -----------  -------
    priority  3            3

## nv show system lldp application-tlv tcp-port

Shows the TCP port priority mapping.

In Cumulus Linux 5.14 and earlier, this command is `nv show service llldp application-tlv tcp-port`.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv tcp-port
    Port  priority
    ----  --------
    4217  6

## nv show system lldp application-tlv tcp-port <port-id>

Shows the priority mapping for the specified TCP port.

In Cumulus Linux 5.14 and earlier, this command is `nv show service llldp application-tlv tcp-port <port-id>`.

### Command Syntax

Syntax | Description
--- | ---
`<port-id>` | The port ID.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv tcp-port 4217
              operational  applied
    --------  -----------  -------
    priority  6            6

## nv show system lldp application-tlv udp-port

Shows the UDP port priority mapping.

In Cumulus Linux 5.14 and earlier, this command is `nv show service llldp application-tlv udp-port`.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv udp-port
    Port  priority
    ----  --------
    4317  4

## nv show system lldp application-tlv udp-port <port-id>

Shows the priority mapping for the specified UDP port.

In Cumulus Linux 5.14 and earlier, this command is `nv show service llldp application-tlv udp-port <port-id>`.

### Command Syntax

Syntax | Description
--- | ---
`<port-id>` | The port ID.

### Version History

Introduced in Cumulus Linux 5.9.0

### Example

    cumulus@switch:~$ nv show system lldp application-tlv udp-port 4317
              operational  applied
    --------  -----------  -------
    priority  4            4