LLDP Operational Commands
LLDP Show Commands
The LLDP show commands provide detailed information about the LLDP global summary, neighbors, and interfaces.
Syntax:
Option | Description |
---|---|
|
Displays information about interfaces where LLDP is enabled. |
|
Displays information about all the neighbors. |
|
Displays global summary details such as system name, frequency of transmissions, the hold-time for the packets sent, TLVs, and the disabled TLVs. |
LLDP Interfaces
The command displays the information about interfaces where LLDP is enabled.
Syntax:
Option | Description |
---|---|
|
Displays summary details such as status, MAC address and description. |
Example 1: LLDP interface summary
root@rtbrick: op> show lldp interface Interface name Status MAC address Description ifp-0/0/0 Down 7a:77:6a:01:00:01 Physical interface #0 from node 0, chip 0 ifp-0/0/1 Up 7a:77:6a:01:00:02 Physical interface #1 from node 0, chip 0 ifp-0/0/2 Up 7a:77:6a:01:00:05 Physical interface #2 from node 0, chip 0
Example 2: For the interfaces where L2X is configured, LLDP is suppressed as shown in the following example.
root@rtbrick: op> show lldp interface Interface name Status MAC address Description ifp-0/0/0 Suppress 7a:3a:ce:60:00:00 Suppressed by L2X : L2X1 ifp-0/0/1 Suppress 7a:3a:ce:60:00:01 Suppressed by L2X : L2X2
LLDP Neighbors
This command displays the information of all neighbors.
Syntax:
Option | Description |
---|---|
|
Displays the information in detail about a specific LLDP neighbor or all neighbors. |
|
Name of the interface on which neighbor is formed. |
Example 1: LLDP neighbor summary
root@rtbrick: op> show lldp neighbor Neighbor name Status Remote port ID Local port ID Neighbor MAC address Last received Last sent fwdd-r2 Up ifp-0/0/1 ifp-0/0/1 7a:1a:c9:00:00:01 0:00:05 ago 0:00:05 ago fwdd-r2 Up ifp-0/0/2 ifp-0/0/2 7a:1a:c9:00:00:04 0:00:05 ago 0:00:05 ago
Example 2: LLDP all neighbor details
root@rtbrick: op> show lldp neighbor detail Neighbor: fwdd-r2 Neighbor MAC address: 7a:1a:c9:00:00:01 Neighbor port ID: ifp-0/0/1 Neighbor port description: Physical interface #1 from node 0, chip 0 Neighbor TTL: 121 Neighbor timeout: 121000 Local interface: ifp-0/0/1 Local MAC address: 7a:77:6a:01:00:02 Local port description: Physical interface #1 from node 0, chip 0 Packets sent: 35 Packets received: 36 Neighbor status: Up Neighbor: fwdd-r2 Neighbor MAC address: 7a:1a:c9:00:00:04 Neighbor port ID: ifp-0/0/2 Neighbor port description: Physical interface #2 from node 0, chip 0 Neighbor TTL: 121 Neighbor timeout: 121000 Local interface: ifp-0/0/2 Local MAC address: 7a:77:6a:01:00:05 Local port description: Physical interface #2 from node 0, chip 0 Packets sent: 35 Packets received: 36 Neighbor status: Up
Example 3: LLDP specific neighbor details
root@rtbrick: op> show lldp neighbor ifp-0/0/1 Neighbor: fwdd-r2 Neighbor MAC address: 7a:1a:c9:00:00:01 Neighbor port ID: ifp-0/0/1 Neighbor port description: Physical interface #1 from node 0, chip 0 Neighbor TTL: 121 Neighbor timeout: 121000 Local interface: ifp-0/0/1 Local MAC address: 7a:77:6a:01:00:02 Local port description: Physical interface #1 from node 0, chip 0 Packets sent: 148 Packets received: 149 Neighbor status: Up
To access the Operational State API that corresponds to this CLI, click
include::common:partial$operational_api_links.adoc[tag=show_lldp_neighbor].
LLDP Summary
The command displays the LLDP global summary information.
Syntax:
Option | Description |
---|---|
|
Without any options, the command displays LLDP global summary details such as status, MAC address and description. |
Example 1: LLDP System Summary
root@rtbrick: op> show lldp summary Mode: global System hostname: fwdd-r1 Transmit interval: 30 sec Transmit holdtime: 120 sec