Enabling the LLDP Trap Function
Context
- 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
- Run system-view
The system view is displayed.
- 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.