SONiC do Dell Networking: Protocolo de resolução de endereço IPv4

Summary: Este artigo explica sobre o protocolo de resolução de endereçoS IPv4 no Dell Networking SONiC. Este artigo usa um comutador que executa o 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

 
Pré-requisitos
Estamos usando a nomenclatura de interface padrão para demonstrar os conceitos. Consulte o artigo da Dell 202172 Dell Networking Série S: Configuração básica de interface - SONiC 4.0 para obter mais informações sobre nomenclatura de interface


Índice

Introdução
Exibir entradas do protocolo de resolução de endereço IPv4.
Limpar entradas IPv4

Introdução

O Protocolo de resolução de endereços (ARP) permite que os pacotes IPv4 sejam enviados entre redes, traduzindo endereços IP de rede para endereços de hardware MAC e endereços MAC para endereços IP. O endereço MAC e o endereço IP correspondente dos dispositivos de destino são mantidos na tabela ARP. Usando o endereço IP, a tabela ARP permite que o comutador recupere rapidamente o endereço MAC associado, encapsular o pacote IP em um quadro L2 e transmiti-lo pela rede para um destino.

Exibir entradas ARP IPv4

Para exibir entradas da tabela ARP, use o comando show ip arp . Para filtrar a saída, especifique uma interface, port channel ou VLAN, um endereço IP no formato x.x.x.x, um endereço MAC ou uma combinação de mais de um valor para corresponder. Você também pode exibir informações resumidas e as entradas ARP IPv4 em um VRF especificado.

Sintaxe do comando
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
 
Nota: A última entrada ARP para o endereço IP de loopback 0.0.0.0 pode ser inserida a partir do sonic NEIGH_TABLE de APPL_DB. Para excluir a entrada, você deve excluí-la manualmente do REDIS_DB usando o redis-cli ou qualquer outro aplicativo que permita editar o 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

Limpar entradas IPv4

Para excluir entradas IPv4 aprendidas dinamicamente da tabela ARP, use o comando clear ip arp. Para especificar as entradas a serem excluídas, digite uma interface, port channel ou VLAN, um endereço IPv4 ou uma combinação para corresponder. Digite force para excluir entradas ARP configuradas estaticamente. Use o comando show ip arp para verificar se as entradas IPv4 foram excluídas.
 
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.