Dell Networking SONiC: IPv4 Address Resolution Protocol

摘要: This article explains about IPv4 Address Resolution Protocol in Dell Networking SONiC. This article uses a switch running Dell SONiC 4.1.

本文章適用於 本文章不適用於 本文無關於任何特定產品。 本文未識別所有產品版本。

說明

 
Prerequisites
We are using standard interface naming to demonstrate the Concepts. See Dell article 202172 Dell Networking S-Series: Basic Interface Configuration - SONiC 4.0 for more information regarding interface naming


Index

Introduction
View IPv4 Address Resolution Protocol entries.
Clear IPv4 entries

Introduction

The Address Resolution Protocol (ARP) allows IPv4 packets to be sent across networks by translating IP network addresses to MAC hardware addresses, and MAC addresses to IP addresses. The MAC address and corresponding IP address of destination devices are maintained in the ARP table. Using the IP address, the ARP table allows the switch to quickly retrieve the associated MAC address, encapsulate the IP packet in a L2 frame, and transmit it over the network to a destination.

View IPv4 ARP entries

To display ARP table entries, use the show ip arp command. To filter the output, specify an interface, port channel, or VLAN, an IP address in the format x.x.x.x, a MAC address, or a combination of more than one value to match. You can also display summary information and the IPv4 ARP entries in a specified VRF.

Command Syntax
admin@DELLSONiC:~$ sonic-cli
DELLSONiC# configure
DELLSONiC(config)#show ip arp <[interface {Eth slot/port[/breakout-port] [summary] | PortChannel number [summary] | Vlan vlan-id [summary] | Management port-number [summary]}] [ip-address] [mac-address mac-address] [summary] [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.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
 
NOTE: The last ARP entry for the loopback IP address 0.0.0.0 may be entered from the SONiC NEIGH_TABLE of APPL_DB. To delete the entry, you must manually delete it from the REDIS_DB using the redis-cli or any other application that allows you to edit the 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

Clear IPv4 entries

To delete dynamically learned IPv4 entries from the ARP table, use the clear ip arp command. To specify the entries to be deleted, enter an interface, port channel, or VLAN, an IPv4 address, or a combination to match. Enter force to delete statically configured ARP entries. Use the show ip arp command to verify that the IPv4 entries have been deleted.
 
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

受影響的產品

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
文章屬性
文章編號: 000218168
文章類型: How To
上次修改時間: 16 10月 2023
版本:  3
向其他 Dell 使用者尋求您問題的答案
支援服務
檢查您的裝置是否在支援服務的涵蓋範圍內。