185
Task Command
port. {
nearest-bridge
|
nearest-customer
|
nearest-nontpmr
} ]
Display types of
advertisable optional LLDP
TLVs.
display lldp tlv-config
[
interface interface-type interface-number
] [
agent
{
nearest-bridge
|
nearest-customer
|
nearest-nontpmr
} ]
Basic LLDP configuration example
Network requirements
, enable LLDP globally on Switch A and Switch B to perform the following
tasks:
•
Monitor the link between Switch A and Switch B on the NMS.
•
Monitor the link between Switch A and the MED device on the NMS.
Figure 67 Network diagram
Configuration procedure
1.
Configure Switch A:
# Enable LLDP globally.
<SwitchA> system-view
[SwitchA] lldp global enable
# Enable LLDP on HundredGigE 1/0/1. By default, LLDP is enabled on ports.
[SwitchA] interface hundredgige 1/0/1
[SwitchA-HundredGigE1/0/1] lldp enable
# Set the LLDP operating mode to Rx on HundredGigE 1/0/1.
[SwitchA-HundredGigE1/0/1] lldp admin-status rx
[SwitchA-HundredGigE1/0/1] quit
# Enable LLDP on HundredGigE 1/0/2. By default, LLDP is enabled on ports.
[SwitchA] interface hundredgige 1/0/2
[SwitchA-HundredGigE1/0/2] lldp enable
# Set the LLDP operating mode to Rx on HundredGigE 1/0/2.
[SwitchA-HundredGigE1/0/2] lldp admin-status rx
[SwitchA-HundredGigE1/0/2] quit
2.
Configure Switch B:
# Enable LLDP globally.