< Home

display ndp

Function

The display ndp command displays the global NDP information or the NDP information on 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 on 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

When you check the NDP information:

  • If NDP is not globally enabled, only the current NDP status of a switch is displayed.
  • If 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: 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 ----   
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:
  • disabled: NDP is disabled globally.

  • enabled: NDP is enabled globally.

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

  • Enabled: 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: full-duplex

  • Half: half-duplex

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)
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >