display ndp

Function

The display ndp command displays the global NDP information or the NDP information about a specified interface.

Format

display ndp [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> ]

Parameters

Parameter Description Value
interface { interface-type interface-number1 [ to interface-type interface-number2 ] }

Displays the NDP information about a specified interface.

  • interface-type interface-number1 indicates the type and number of the first interface.
  • interface-type interface-number2 indicates the type and number of the last interface.

If no interface is specified when you run the display ndp command, NDP information about all interfaces is displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The following situations exist when you check the NDP information:

  • When NDP is not globally enabled, only the current NDP status of a switch is displayed.
  • When NDP is globally enabled, the global NDP information and status and the NDP information and status of interfaces on a switch are displayed.

Example

# 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: GigabitEthernet1/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   : GigabitEthernet1/0/1
       Software Version: Version 5.130 V200R005C00
       Device Name : S9700 
       Port Duplex : FULL                                                       
       Product Ver : S9700 V200R005C00 
---- More ----   
Table 1 Description of the display ndp command output

Item

Description

Neighbor discovery protocol is status

The global NDP function is in status state. status includes the following types of status:
  • disabled indicates that NDP is disabled globally.

  • enabled indicates that NDP is enabled globally.

To set this value, run the ndp enable (system view) command.

Neighbor Discovery Protocol Ver

Currently supported NDP versions. Currently, the device supports version 1.

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:
  • Disabled: indicates that NDP is disabled on the interface.

  • Enabled: indicates that NDP is enabled on the 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.
  • FULL: indicates full-duplex.

  • Half: indicates half-duplex.

Product Ver

Type and software version number of the neighboring node.

# Display the NDP information about 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)
Related Topics
ndp enable (interface view)
ndp enable (system view)
ndp timer aging
ndp timer hello

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.