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デルの記事を参照してください。基本的なインターフェイス構成 - インターフェイス の命名に関する詳細については、SONiC 4.0を参照してください。


索引

導入
IPv4 アドレス解決プロトコルエントリを表示します。
IPv4エントリーのクリア

概要

アドレス解決プロトコル(ARP)を使用すると、IPネットワーク アドレスをMACハードウェア アドレスに変換し、MACアドレスをIPアドレスに変換することで、ネットワーク経由でIPv4パケットを送信できます。宛先デバイスのMACアドレスと対応するIPアドレスはARPテーブルに保持されます。IPアドレスを使用すると、ARPテーブルを使用して、スイッチは関連するMACアドレスを迅速に取得し、L2フレーム内のIPパケットをカプセル化して、ネットワーク経由で宛先に送信することができます。

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エントリーのクリア

動的に学習したIPv4エントリーをARPテーブルから削除するには、 clear 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-ON
Article 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.