Configuring the LLDP agent

Procedure
  1. By default, the LLDP agent is enabled on all active interfaces. If LLDP was disabled, enable it with the command lldp.
  2. By default, the LLDP agent transmits and receive on all interfaces. To customize LLDP behavior on a specific interface, use the commands lldp transmit and lldp receive.
  3. By default, the LLDP agent sets the management address in all TLVs in the following order:
    1. LLDP management IP address.

    2. Loopback interface IP.

    3. ROP (L3 ports) or SVI (L2 ports).

    4. OOBM (Management interface IP).

    5. Base MAC.

    On the OOBM port, the following order is used:

    1. LLDP management IP address,

    2. IP address of the management interface (OOBM port).

    3. IP address of the loopback interface.

    4. Base MAC address of the switch.

    To specify a different address, use the commands lldp management-ipv4-address and lldp management-ipv6-address

  4. By default, all supported TLVs are sent and received. To customize the list, use the command lldp select-tlv.
  5. By default, support for the LLDP-MED TLV is enabled. To customize settings, use the commands lldp med and lldp med-location.
  6. If required, adjust LLDP timer, holdtime, reinitialization delay, and transmit delay from their default values with the commands lldp timer, lldp holdtime, lldp reinit, and lldp txdelay.

Example

On the 6400 Switch Series, interface identification differs.

This example creates the following configuration:

  • Enables LLDP support.
  • Disables LLDP transmission on interface 1/1/1.
switch(config)# lldp
switch(config)# interface 1/1/1
switch(config-copp)# no lldp transmit