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 commandlldp.
  2. By default, the LLDP agent transmits and receive on all interfaces. To customize LLDP behavior on a specific interface, use the commandslldp transmitandlldp 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.

    OOBM端口,使用下列顺序:

    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 commandslldp management-ipv4-addressandlldp management-ipv6-address

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

Example

This example creates the following configuration:

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