display ndp [ interface { interface-type interface-number1 [ to interface-type interface-number2 ] } & <1-10> ]
| 参数 | 参数说明 | 取值 |
|---|---|---|
| interface { interface-type interface-number1 [ to interface-type interface-number2 ] } | 查看指定接口的NDP信息。
如果不指定接口,执行该命令将查看所有接口的NDP信息。 |
- |
# 显示全局NDP和所有接口的NDP信息。
<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 ----
项目 |
描述 |
|---|---|
Neighbor discovery protocol is status |
全局NDP功能处于status状态。status包括两个状态:
可以通过ndp enable (系统视图)命令配置。 |
Neighbor Discovery Protocol Ver |
支持的NDP版本。目前,设备都支持版本1。 |
Hello Timer |
NDP报文的发送时间间隔。以秒为单位。可以通过ndp timer hello命令配置。 |
Aging Timer |
NDP信息的老化时间。以秒为单位。可以通过ndp timer aging命令配置。 |
Interface |
交换机的接口编号。 |
Status |
接口的NDP状态:
可以通过ndp enable (系统视图)或ndp enable (接口视图)命令配置。 |
Packets Sent |
接口发送的NDP报文数。 |
Packets Received |
接口接收到的NDP报文数。 |
Packets Error |
接口接收到的错误的NDP报文数。 |
Neighbor 1 |
邻居节点1。 |
Aging Time |
接口连接的邻居节点的NDP信息老化时间。 |
MAC Address |
邻居节点的MAC地址。 |
Port Name |
邻居节点的与本接口相连的接口名称。 |
Software Version |
邻居节点的系统软件的版本信息。 |
Device Name |
邻居节点的主机名。 |
Port Duplex |
邻居节点与本接口相连的接口的双工模式。
|
Product Ver |
邻居节点的型号以及软件版本号。 |
# 显示未使能全局NDP功能的交换机NDP信息。
<HUAWEI> display ndp
Neighbor discovery protocol is disabled. Neighbor Discovery Protocol Ver: 1, Hello Timer: 60(s), Aging Timer: 180(s)