Dell Networking SONiC: IPv4 Address Resolution Protocol
Summary: In dit artikel wordt uitgelegd over het IPv4 Address Resolution Protocol in Dell Networking SONiC. Dit artikel gebruikt een switch met 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
|
Vereisten
We gebruiken standaard interfacenamen om de concepten te demonstreren. Zie het Dell artikel 202172 Dell Networking S serie: Basic Interface Configuration - SONiC 4.0 voor meer informatie over interfacenamen |
Index
Inleiding
IPv4 Address Resolution Protocol vermeldingen weergeven.
IPv4-vermeldingen wissen
Inleiding
Met het Address Resolution Protocol (ARP) kunnen IPv4-pakketten via netwerken worden verzonden door IP-netwerkadressen te vertalen naar MAC-hardwareadressen en MAC-adressen naar IP-adressen. Het MAC-adres en het bijbehorende IP-adres van doelapparaten worden bewaard in de ARP-tabel. Met behulp van het IP-adres kan de ARP-tabel de switch snel het bijbehorende MAC-adres ophalen, het IP-pakket in een L2-frame inkapselen en via het netwerk naar een doel verzenden.IPv4 ARP-vermeldingen weergeven
Als u ARP-tabelvermeldingen wilt weergeven, gebruikt u de opdracht show ip arp . Als u de uitvoer wilt filteren, geeft u een interface, poortkanaal of VLAN op, een IP-adres in de indeling x.x.x.x, een MAC-adres of een combinatie van meer dan één waarde die overeenkomt. U kunt ook overzichtsinformatie en de IPv4 ARP-vermeldingen weergeven in een opgegeven VRF.Opdrachtsyntaxis
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 |
OPMERKING: De laatste ARP-vermelding voor het loopback-IP-adres 0.0.0.0 kan worden ingevoerd vanuit de SONiC NEIGH_TABLE van APPL_DB. Als u de vermelding wilt verwijderen, moet u deze handmatig uit de REDIS_DB verwijderen met behulp van de redis-cli of een andere applicatie waarmee u de REDIS_DB kunt bewerken.
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-vermeldingen wissen
Als u dynamisch geleerde IPv4-vermeldingen uit de ARP-tabel wilt verwijderen, gebruikt u de opdracht clear ip arp. Om de te verwijderen vermeldingen op te geven, voert u een interface, poortkanaal of VLAN, een IPv4-adres of een combinatie ervan in die overeenkomt. Voer force in om statisch geconfigureerde ARP-vermeldingen te verwijderen. Gebruik de opdracht show ip arp om te controleren of de IPv4-vermeldingen zijn verwijderd. 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.