SONiC Dell Networking: Protocollo di risoluzione degli indirizzi IPv4
요약: Questo articolo spiega il protocollo IPv4 Address Resolution Protocol in Dell Networking SONiC. Questo articolo utilizza uno switch con Dell SONiC 4.1.
이 문서는 다음에 적용됩니다.
이 문서는 다음에 적용되지 않습니다.
이 문서는 특정 제품과 관련이 없습니다.
모든 제품 버전이 이 문서에 나와 있는 것은 아닙니다.
지침
|
Prerequisiti
Stiamo utilizzando la denominazione dell'interfaccia standard per dimostrare i concetti. Consultare l'articolo Di Dell 202172 Dell Networking serie S: Configurazione dell'interfaccia di base - SONiC 4.0 per ulteriori informazioni sulla denominazione dell'interfaccia |
Indice
Introduzione
Visualizzare le voci del protocollo di risoluzione degli indirizzi IPv4.
Cancellare le voci IPv4
Introduzione
Il protocollo ARP (Address Resolution Protocol) consente l'invio di pacchetti IPv4 su reti convertendo gli indirizzi di rete IP in indirizzi hardware MAC e gli indirizzi MAC in indirizzi IP. L'indirizzo MAC e l'indirizzo IP corrispondente dei dispositivi di destinazione vengono mantenuti nella tabella ARP. Utilizzando l'indirizzo IP, la tabella ARP consente allo switch di recuperare rapidamente l'indirizzo MAC associato, incapsulare il pacchetto IP in un frame L2 e trasmetterlo in rete a una destinazione.Visualizzazione delle voci ARP IPv4
Per visualizzare le voci della tabella ARP, utilizzare il comando show ip arp . Per filtrare l'output, specificare un'interfaccia, un canale della porta o una VLAN, un indirizzo IP nel formato x.x.x.x, un indirizzo MAC o una combinazione di più di un valore da abbinare. È inoltre possibile visualizzare le informazioni di riepilogo e le voci ARP IPv4 in uno specifico VRF.Sintassi dei comandi
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: L'ultima voce ARP per l'indirizzo IP di loopback 0.0.0.0 può essere inserita dal NEIGH_TABLE SONiC di APPL_DB. Per eliminare la voce, è necessario eliminarla manualmente dal REDIS_DB utilizzando la redis-cli o qualsiasi altra applicazione che consenta di modificare il 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 |
Cancellare le voci IPv4
Per eliminare le voci IPv4 acquisite dinamicamente dalla tabella ARP, utilizzare il comando clear ip arp. Per specificare le voci da eliminare, immettere un'interfaccia, un port channel o una VLAN, un indirizzo IPv4 o una combinazione da abbinare. Inserire forza per eliminare le voci ARP configurate in modo statico. Utilizzare il comando show ip arp per verificare che le voci IPv4 siano state eliminate. 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 사용자에게 질문에 대한 답변 찾기
지원 서비스
디바이스에 지원 서비스가 적용되는지 확인하십시오.