reset arp
命令功能
reset arp命令用来清除ARP映射表中的ARP表项和相关报文统计信息。
命令格式
reset arp { all | dynamic [ ip ip-address [ vpn-instance vpn-instance-name ] ] | interface interface-type interface-number [ ip ip-address ] | static }
参数说明
参数 参数说明 取值
all 清除所有的ARP表项。 -
dynamic 表示清除动态ARP项。 -
interface interface-type interface-number 指定接口类型和编号,其中:
interface-type表示选择的接口类型。
interface-number表示选择的接口编号。
-
ip ip-address
清除指定接口+IP地址的动态ARP表项。
当指定接口下学习到了多条ARP表项,重庆IT运维,如果用户只需要删除其中一条ARP表项时,可选择此参数。
点分十进制格式。
vpn-instance vpn-instance-name 指定VPN实例名称。 必须是已存在的VPN实例。
static 清除静态ARP表项后,静态ARP表项将无法恢复,清除前请务必仔细确认。 -
视图
用户视图
缺省级别
2:配置级
使用指南
应用场景
当设备受到攻击,学习到大量无用ARP表项时,用户需要通过此命令进行ARP表项清除。
注意事项
使用reset arp命令将取消IP地址和MAC地址的映射关系,可能导致无法访问某些节点。
执行清除ARP表项命令的时间间隔至少为20秒(仅针对未指定IP地址ip ip-address的reset arp命令)。
使用实例
# 删除ARP映射表中的动态ARP表项。
reset arp dynamic
# 删除接口VLANIF10的ARP映射表中的动态表项。
reset arp interface vlanif 10