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
|
先決條件
我們使用標準介面命名來展示概念。請參閱 Dell Networking S 系列202172 Dell 文章:基本介面組態 - 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.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 |
注意:您可從 APPL_DB 的 SONiC NEIGH_TABLE輸入回路 IP 位址 0.0.0.0 的最後一個 ARP 專案。若要刪除專案,您必須使用 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 專案,請使用清除 ip arp 命令。若要指定要刪除的專案,請輸入介面、埠通道或 VLAN、IPv4 位址或相符的組合。輸入強制以刪除靜態設定的 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.