ARP故障排查
1. 命令功能
debugging arp命令用来打开ARP的调试开关,输出调试信息。
undo debugging arp命令用来关闭ARP的调试开关。
缺省情况下,关闭ARP的调试开关。
2. 应用场景
在出现ARP故障时,可以使用debugging arp命令查看调试信息,快速定位故障的原因。
打开调试开关将影响系统的性能。调试完毕后,应及时执行undo debugging all命令
关闭调试开关。尤其当CPU占用率接近100%时,打开ARP模块的debug开关可能导致
设备单板复位,此时请用户慎用。
3.适用范围
适用华为交换机
4.示例
# 打开ARP报文调试开关,并在终端上显示调试信息。
<HUAWEI> debugging arp packet
Apr 25 2024 09:35:01.462 HUAWEI %%01ARP/7/ARP_DBG_PACKET_SND(d):CID=0x81670513;Send an ARP
Packet, operation : 2, send_eth_addr : xxxx-xxxx-xxxx, sender_ip_addr : 200.200.200.200, target_eth_addr : xxxx)
xxxx-xxxx, target_ip_addr : 200.200.200.201
Apr 25 2024 09:35:01.462 HUAWEI %%01ARP/7/ARP_DBG_PACKET_RCV(d):CID=0x81670513;Receive an
ARP Packet, operation : 1, send_eth_addr : xxxx-xxxx-xxxx, sender_ip_addr : 200.200.200.201, target_eth_addr :
xxxx-xxxx-xxxx, target_ip_addr : 200.200.200.200
输出信息描述:
内容
描述
operation
动作
send_eth_addr
发送端Ethernet地址,即发送端MAC地址
sender_ip_addr
发送端的ip地址
target_eth_addr
ARP报文的目的Ethernet地址,即目的端的MAC地址
target_ip_addr
ARP报文的目的IP地址
Receive An ARP Packet
接收到一个ARP报文
Sned An ARP Packet
发送一个ARP报文
5. 问题诊断
- 通过日志信息分析,定位故障原因
- 检查故障点,解决故障