API Guide

Identifier GUID-D861487B-5B48-43B1-AC16-8EB253DE1761
Version 9
Status Translation approved
地址解析协议
地址解析协议 (ARP) 通过以太网运行可让终端站了解 IP 网络上邻居的 MAC 地址。使用 ARPOS10 会自动更新将 MAC 地址映射
到相应 IP 地址的 ARP cache 表。ARP cache 将在您配置的时间段后删除动态获知的地址。
配置静态 ARP 条目
您可以在 ARP 映射表中手动配置静态条目。动态 ARP 容易受到欺骗。为避免哄骗请配置静态条目。静态条目优先于动态 ARP
目。
: 在默认转发表模式下在第 3 层端口通道上获悉的最大 ARP 条目数限制为 32000。此限制仅适用于 Z9100 S5200
1. INTERFACE 模式下配置接口的 IP 地址和 MAC 地址映射。
ip arp ip-address mac address
ip-address 采用点分隔十进制格式格式的 IP 地址 A.B.C.D 格式表示
mac address 采用 nnnn.nnnn.nnnn 格式的 MAC 地址
这些条目不存在您只能手动将其移除。要移除静态 ARP 条目请使用 no arp ip-address 命令。
配置静态 ARP 条目
OS10(config)# interface ethernet 1/1/6
OS10(conf-if-eth1/1/6)# ip arp 10.1.1.5 08:00:20:b7:bd:32
查看 ARP 条目
OS10# show ip arp interface ethernet 1/1/6
Address Hardware address Interface Egress Interface
--------------------------------------------------------------
10.1.1.5 08:00:20:b7:bd:32 ethernet1/1/6 ethernet1/1/6
Identifier
GUID-77AC9FAE-95CC-4E55-8060-1691E9770DC5
Version 4
Status Translation approved
IPv4 路由命令
Identifier
GUID-5D282FA5-37F6-41DB-991D-A11F8AF9E0B4
Version 3
Status Translation approved
clear ip arp
从特定接口清除动态 ARP 条目或者可选从内容可寻址内存 (CAM) 中删除无刷新ARP 条目。
语法
clear ip arp [vrf vrf-name] [interface interface | ip ip-address] [no-refresh]
参数
vrf vrf-name 可选输入 vrf VRF 的名称以清除与该 VRF 对应的 ARP 条目。
interface interface可选指定接口类型
ethernet 物理接口。
port-channel 端口通道标识符。
vlan VLAN 标识符。
loopback 环回接口标识符。
virtual-network vn-id 虚拟网络 ID
ip ip-address 可选指定要清除的 ARP 条目的 IP 地址。
no-refresh 可选 CAM 删除 ARP 条目。您还可以将此选项与 interface ip ip-
address 一起使用以指定要删除的动态 ARP 条目。
默认 未配置
610 3