Configuring LLDP

Last Updated : Nov 06, 2012 |

Procedure

  1. Enable the LLDP agent globally using the set lldp system-control command.

    For example:

    Gxxx-001(super)# set lldp system-control enable
    Done!

    The device’s global topology information, including all mandatory TLVs, is now available to neighboring devices supporting LLDP.

  2. Optionally, configure the administrative LLDP port status using the set port lldp command.

    The default value is rx-and-tx.

    The device now sends LLDP TLVs and accepts LLDP TLVs from neighboring devices supporting LLDP on the specified port.

    For example:

    Gxxx-001(super)# set port lldp 10/3 rx-and-tx
    Done!
  3. Optionally, configure additional TLVs transmission using the set port lldp tlv command.

    This allows you to advertise additional data about the device’s and port’s VLAN information, VLANs, and system capabilities. Additional TLVs are disabled by default.

    For example:

    Gxxx-001(super)# set port lldp tlv 10/3 enable all
    Done!

    The device now advertises all mandatory and optional TLVs to neighboring network devices supporting LLDP.

  4. If required, change any of the following timing parameters:
    • The interval at which the device transmits LLDP frames, using the command set lldp tx-interval. The default is 30 seconds.

    • The value of TxHoldMultiplier, using the command set lldp tx-hold-multiplier. TxHoldMultiplier is a multiplier on the interval configured by set lldp tx-interval that determines the actual TTL value sent in an LLDP frame. The default value is 30. The time-to-live value transmitted in TTL TLV is expressed by: TTL = min(65535, TxInterval * TxHoldMultiplier).

    • The minimal delay between successive LLDP frame transmissions, on each port, using the command set lldp tx-delay. The default is 30 seconds.

    • The delay from when a port is set to LLDP disable until re-initialization is attempted, using the command set lldp re-init-delay. The default is 2 seconds.

  5. Verify LLDP advertisements using the show lldp command.