Enable LLDP on the router at the global level so that all interfaces that support LLDP are automatically enabled for both transmit and receive operations, and configure the LLDP holdtime, reinit, and timer attributes to control the neighbor holdtime, initialization delay, and packet rate.
To run LLDP on the router, you must enable it globally. When you enable LLDP globally, all interfaces that support LLDP are automatically enabled for both transmit and receive operations.
You can override this default operation at the interface to disable receive or transmit operations. For more information about how to selectively disable LLDP receive or transmit operations for an interface, see the Disable LLDP receive and transmit operation for an interface section.
For LLDP to work on any bundle member, enable LLDP on the bundle main interface either globally or on the interface itself. You can then choose to disable LLDP transmission on bundle main interface by using the lldp transmit disable command. You can also control LLDP transmit or receive on each bundle member interface as desired.
The following table describes the global attributes that you can configure:
| Attribute | Default | Range | Description |
|---|---|---|---|
| Holdtime | 120 | 0-65535 | Specifies the holdtime (in sec) that are sent in packets |
| Reinit | 2 | 2-5 | Delay (in sec) for LLDP initialization on any interface |
| Timer | 30 | 5-65534 | Specifies the rate at which LLDP packets are sent (in sec) |
Procedure
| 1. | Enter global configuration mode. Example:
|
|
| 2. | Enable LLDP globally with the lldp command. Example:
|
|
| 3. | Save your configuration with end or commit . Example:
|
|
| 4. | Use show run lldp command to check the running configuration. Example:
Example:If LLDP is not enabled globally, the following output appears when you run the show lldp command:
|