Dell Networking SONiC: IPv4-adresseopløsningsprotokol

Summary: Denne artikel beskriver IPv4 Address Resolution Protocol i Dell Networking SONiC. Denne artikel bruger en switch, der kører 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

 
Forudsætninger
Vi bruger standardgrænsefladenavngivning til at demonstrere koncepterne. Se Dells artikel 202172 Dell Networking S-serien: Grundlæggende grænsefladekonfiguration – SONiC 4.0 for yderligere oplysninger om grænsefladenavngivning


Indeks

Indførelsen
Vis IPv4-adresseopløsningsprotokolposter.
Ryd IPv4-poster

Indledning

ARP (Address Resolution Protocol) gør det muligt at sende IPv4-pakker via netværk ved at oversætte IP-netværksadresser til MAC-hardwareadresser og MAC-adresser til IP-adresser. MAC-adressen og den tilsvarende IP-adresse for destinationsenheder bevares i ARP-tabellen. Ved hjælp af IP-adressen gør ARP-tabellen det muligt for switchen hurtigt at hente den tilknyttede MAC-adresse, indkapsle IP-pakken i en L2-ramme og sende den over netværket til en destination.

Vis IPv4 ARP-poster

For at få vist ARP-tabelposter skal du bruge kommandoen show ip arp . For at filtrere outputtet skal du angive en grænseflade, portkanal eller VLAN, en IP-adresse i formatet x.x.x.x, en MAC-adresse eller en kombination af mere end én værdi, der passer til. Du kan også få vist oversigtsoplysninger og IPv4 ARP-poster i en bestemt VRF.

Kommandosyntaks
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
 
BEMÆRK: Den sidste ARP-post for tilbagekoblings-IP-adressen 0.0.0.0 kan indtastes fra SONiC-NEIGH_TABLE af APPL_DB. Hvis du vil slette posten, skal du manuelt slette den fra REDIS_DB ved hjælp af redis-cli eller et andet program, som giver dig mulighed for at redigere 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

Ryd IPv4-poster

Hvis du vil slette dynamisk indlærte IPv4-poster fra ARP-tabellen, skal du bruge kommandoen clear ip arp. Indtast en grænseflade, portkanal eller VLAN, en IPv4-adresse eller en kombination, der passer til, for at angive de poster, der skal slettes. Tryk på force for at slette statisk konfigurerede ARP-poster. Brug kommandoen show ip arp til at kontrollere, at IPv4-posterne er blevet slettet.
 
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.