Configuring LLDP trapping and LLDP-MED trapping
LLDP trapping or LLDP-MED trapping notifies the network management system of events such as newly detected neighboring devices and link failures.
To prevent excessive LLDP traps from being sent when the topology is unstable, set a trap transmission interval for LLDP.
To configure LLDP trapping and LLDP-MED trapping:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, Layer 2/Layer 3 aggregate interface view, or IRF physical interface view. | interface interface-type interface-number | N/A |
3. Enable LLDP trapping. |
| By default, LLDP trapping is disabled. |
4. Enable LLDP-MED trapping (in Layer 2/Layer 3 Ethernet interface view or management Ethernet interface view). | lldp notification med-topology-change enable | By default, LLDP-MED trapping is disabled. |
5. Return to system view. | quit | N/A |
6. (Optional.) Set the LLDP trap transmission interval. | lldp timer notification-interval interval | The default setting is 30 seconds. |