237
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable CDP compatibility
globally.
lldp compliance cdp
By default, CDP compatibility is
disabled globally.
3.
Enter Layer 2 Ethernet
interface view or
management Ethernet
interface view.
interface
interface-type
interface-number
N/A
4.
Configure CDP-compatible
LLDP to operate in TxRx
mode.
lldp compliance admin-status
cdp txrx
By default, CDP-compatible LLDP
operates in
disable
mode.
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 Ethernet
interface view,
management Ethernet
interface view, or Layer 2
aggregate interface view.
interface
interface-type interface-number
N/A
3.
Enable LLDP trapping.
•
In Layer 2 Ethernet interface view or
management Ethernet interface view:
lldp
[
agent
{
nearest-customer
|
nearest-nontpmr
} ]
notification
remote-change enable
•
In Layer 2 aggregate interface view:
lldp agent
{
nearest-customer
|
nearest-nontpmr
}
notification
remote-change enable
By default, LLDP trapping
is disabled.
4.
Enable LLDP-MED
trapping (in Layer 2
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.
Displaying and maintaining LLDP
Execute
display
commands in any view.