Dell Networking SONiC:IPv4 地址解析协议
Summary: 本文介绍 Dell Networking SONiC 中的 IPv4 地址解析协议。本文使用运行 Dell SONiC 4.1 的交换机。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
|
前提条件
我们使用标准接口命名来演示概念。请参阅戴尔文章 202172 Dell Networking S 系列:基本接口配置 - SONiC 4.0 ,了解有关接口命名的更多信息 |
指数
介绍
查看 IPv4 地址解析协议条目。
清除 IPv4 条目
简介
地址解析协议 (ARP) 允许通过将 IP 网络地址转换为 MAC 硬件地址以及将 MAC 地址转换为 IP 地址,跨网络发送 IPv4 数据包。目标设备的 MAC 地址和相应的 IP 地址保留在 ARP 表中。使用 IP 地址,ARP 表允许交换机快速检索关联的 MAC 地址,将 IP 数据包封装在 L2 帧中,并通过网络将其传输到目标。查看 IPv4 ARP 条目
要显示 ARP 表条目,请使用 show ip arp 命令。要筛选输出,请指定接口、端口通道或 VLAN、格式为 x.x.x.x 的 IP 地址、MAC 地址或要匹配的多个值的组合。您还可以在指定的 VRF 中显示摘要信息和 IPv4 ARP 条目。命令语法
admin@DELLSONiC:~$ sonic-cli DELLSONiC# configure DELLSONiC(config)#show ip arp |
DELLSONiC# show ip arp Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ------------------------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ------------------------------------------------------------------------------------- 192.1xx.1.4 00:01:02:03:44:55 Eth1/3 - Dynamic Fwd 192.1xx.2.4 00:01:02:03:ab:cd PortChannel200 - Dynamic Fwd 192.1xx.3.6 00:01:02:03:04:05 Vlan100 Eth1/2 Dynamic Fwd 10.11.48.2xx 00:01:e8:8b:44:71 Management0 - Dynamic Fwd 0.0.0.0 00:00:00:00:00:00 lo - Dynamic Fwd |
提醒:回路 IP 地址 0.0.0.0 的最后一个 ARP 条目可以从 APPL_DB 的 SONiC NEIGH_TABLE输入。要删除条目,您必须使用 redis-cli 或任何其他允许您编辑REDIS_DB的应用程序手动将其从REDIS_DB中删除。
DELLSONiC# show ip arp interface Vlan 20 Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ----------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ----------------------------------------------------------------------- 20.0.0.2 90:b1:1c:f4:9d:ba Vlan20 Eth1/1 Dynamic Fwd 20.0.0.5 00:11:22:33:44:55 Vlan20 Eth1/1 Dynamic Fwd |
DELLSONiC# show ip arp 20.0.0.2 Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ----------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ----------------------------------------------------------------------- 20.0.0.2 90:b1:1c:f4:9d:ba Vlan20 Eth1/1 Dynamic Fwd |
DELLSONiC# show ip arp mac-address 90:b1:1c:f4:9d:ba Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ----------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ----------------------------------------------------------------------- 20.0.0.2 90:b1:1c:f4:9d:ba Vlan20 Eth1/1 Dynamic Fwd |
DELLSONiC# show ip arp summary Total Entries ------------- 2 |
DELLSONiC# show ip arp vrf Vrf_1 Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ----------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ----------------------------------------------------------------------- 20.0.0.2 90:b1:1c:f4:9d:ba Vlan20 Eth1/1 Dynamic Fwd 20.0.0.5 00:11:22:33:44:55 Vlan20 Eth1/1 Dynamic Fwd |
清除 IPv4 条目
要从 ARP 表中删除动态学习的 IPv4 条目,请使用 clear ip arp 命令。要指定要删除的条目,请输入要匹配的接口、端口通道或 VLAN、IPv4 地址或组合。输入 force 以删除静态配置的 ARP 条目。使用 show ip arp 命令验证 IPv4 条目是否已删除。 DELLSONiC# clear ip arp < [interface {Eth slot/port[/breakout-port] | PortChannel number | Vlan vlanid | Management port-number}] [ip-address] [vrf vrf-name]> |
DELLSONiC# show ip arp Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ------------------------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ------------------------------------------------------------------------------------- 192.168.2.4 00:01:02:03:ab:cd PortChannel200 - Dynamic Fwd 192.168.3.6 00:01:02:03:04:05 Vlan100 Eth1/2 Dynamic Fwd 10.11.48.254 00:01:e8:8b:44:71 Management0 - Dynamic Fwd sonic# clear ip arp interface Vlan 100 sonic# show ip arp Type: R - Remote Neighbor entries (EVPN or MCLAG Separate IP) ------------------------------------------------------------------------------------- Address Hardware address Interface Egress Interface Type Action ------------------------------------------------------------------------------------- 192.168.2.4 00:01:02:03:ab:cd PortChannel200 - Dynamic Fwd 10.11.48.254 00:01:e8:8b:44:71 Management0 - Dynamic Fwd |
Affected Products
PowerSwitch E3200-ON Series, Dell EMC Networking N3200-ON, PowerSwitch S5212F-ON, PowerSwitch S5224F-ON, PowerSwitch S5232F-ON, PowerSwitch S5248F-ON, PowerSwitch S5296F-ON, PowerSwitch Z9264F-ON, PowerSwitch Z9332F-ON, PowerSwitch Z9432F-ONArticle Properties
Article Number: 000218168
Article Type: How To
Last Modified: 16 Oct 2023
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.