To do...
Display the information contained
in the LLDP TLVs sent from
neighboring devices
Display LLDP statistics
Display LLDP status of a port
Display types of advertisable
optional LLDP TLVs
LLDP configuration examples
Basic LLDP configuration example
Network requirements
As shown in
Router B are connected to GigabitEthernet 4/1/1 and GigabitEthernet 4/1/2 of Router A.
Enable LLDP on the ports of Router A and Router B to monitor the link between them and the link between
Router A and the MED device on the NMS.
Figure 77 Network diagram for basic LLDP configuration
Configuration procedure
Configure Router A
1.
# Enable LLDP globally.
<RouterA> system-view
[RouterA] lldp enable
# Enable LLDP on GigabitEthernet 4/1/1 and GigabitEthernet 4/1/2 (skip this step because LLDP is
enabled on ports by default), and set the LLDP operating mode to Rx.
[RouterA] interface gigabitethernet 4/1/1
Use the command...
display lldp neighbor-information [ brief |
interface interface-type interface-number
[ brief ] | list [ system-name system-name ] ]
[ | { begin | exclude | include }
regular-expression ]
display lldp statistics [ global | interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
display lldp status [ interface interface-type
interface-number ] [ | { begin | exclude |
include } regular-expression ]
display lldp tlv-config [ interface
interface-type interface-number ] [ | { begin |
exclude | include } regular-expression ]
Figure
77, the NMS and Router A are located in the same Ethernet. An MED device and
211
Remarks
Available in any view
Available in any view
Available in any view
Available in any view