The display ndp command displays the global NDP information or the NDP information on a specified interface.
display ndp [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> ]
Parameter | Description | Value |
---|---|---|
interface { interface-type interface-number1 [ to interface-type interface-number2 ] } | Displays the NDP information on a specified interface.
If no interface is specified when you run the display ndp command, NDP information about all interfaces is displayed. |
- |
When you check the NDP information:
# Display the global NDP information and NDP information about all the interfaces.
<HUAWEI> display ndp
Neighbor discovery protocol is enabled. Neighbor Discovery Protocol Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s) Interface: GigabitEthernet0/0/1 Status: Enabled, Packets Sent: 114, Packets Received: 108, Packets Error: 0 Neighbor 1: Aging Time: 174(s) MAC Address : 0018-8203-39d8 Port Name : GigabitEthernet0/0/1 Software Version: Version 5.130 V200R019C10 Device Name : S5720 Port Duplex : FULL Product Ver : S5720 V200R019C10 ---- More ----
Item |
Description |
---|---|
Neighbor discovery protocol is status |
The global NDP function is in status state. status includes:
To set this value, run the ndp enable (system view) command. |
Neighbor Discovery Protocol Ver |
Currently supported NDP versions. Version 1 is currently supported by all devices. |
Hello Timer |
Interval for sending NDP packets, in seconds. To set this value, run the ndp timer hello command. |
Aging Timer |
Aging time of NDP information, in seconds. To set this value, run the ndp timer aging command. |
Interface |
Interface number of a switch. |
Status |
NDP status of an interface:
To set this value, run the ndp enable (system view) or ndp enable (interface view) command. |
Packets Sent |
Number of NDP packets sent from the interface. |
Packets Received |
Number of NDP packets received by the interface. |
Packets Error |
Number of incorrect NDP packets received by the interface. |
Neighbor 1 |
Neighboring node 1. |
Aging Time |
Aging time of NDP information about a neighboring node connected to the interface. |
MAC Address |
MAC address of the neighboring node. |
Port Name |
Name of the interface on the neighboring node connected to the interface. |
Software Version |
Version of the system software on the neighboring node. |
Device Name |
Host name of the neighboring node. |
Port Duplex |
Duplex mode of the interface on the neighboring node connected
to the local interface.
|
Product Ver |
Type and software version number of the neighboring node. |
# Display the NDP information of the switch on which NDP is not globally enabled.
<HUAWEI> display ndp
Neighbor discovery protocol is disabled. Neighbor Discovery Protocol Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s)