< Home

Enabling the LLDP Trap Function

Context

The LLDP trap function allows a device to send traps to the NMS in one of the following cases:
  • The LLDP function is enabled or disabled globally.
  • The local management address changes.
  • The rate of LLDPDUs received by an interface exceeds the alarm threshold.
  • A neighbor is added, deleted, aged out, or packets from the neighbor are discarded.
  • The LLDP trap function applies to all interfaces. The LLDP trap function takes effect regardless whether LLDP is enabled globally.
  • If the network topology is unstable, disable the LLDP trap function to prevent frequent trap sending.
  • To set the interval for sending neighbor change traps to the NMS, run the lldp trap-interval commands. If neighbor information changes frequently, extend the interval to reduce the number of traps, suppressing network topology flapping.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run snmp-agent trap enable feature-name lldptrap [ trap-name { hwlldpdisabled | hwlldpenabled | hwlldplocmanipaddrchange | hwlldprateexcessive | lldpremtableschange } ]

    The LLDP trap function is enabled.

    By default, the LLDP trap function is enabled.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >