Skip to content
Ask AI

ARP Configuration

[Command] show arp

[Purpose] Show IP ARP table

[View] System view

[Use Cases]

sonic# show arp
Address MacAddress Iface Vlan
----------- ----------------- --------- ------
100.1.1.2 60:eb:5a:01:6c:99 Ethernet4 -
192.168.2.1 60:eb:5a:01:10:ca Ethernet1 -
Total number of entries 2

[Command] clear neighbor all

[Purpose] Clear ARP, NDP table entries

[View] System view

[Use Cases]

sonic# clear neighbor all

[Command] arp staticA.B.C.D HH:HH:HH:HH:HH:HH interface-type interface-name no arp staticA.B.C.D interface-type interface-name

[Purpose] Configure static ARP

[Parameter]

ParameterDescription
A.B.C.DIP address
HH:HH:HH:HH:HH:HHMAC address
interface-typeInterface type, optional ethernet, vlan, link-aggregation
interface-nameInterface name

[View] System configuration view

[Use Cases]

sonic# configure terminal
sonic(config)# arp static 3.3.3.3 00:00:00:00:00:01 interface vlan 5
sonic(config)# arp static 4.4.4.4 00:00:00:00:00:02 interface ethernet 1
sonic(config)# arp static 5.5.5.5 00:00:00:00:00:03 interface link-aggregation 1

[Command] arp timeoutexpire-time

[Purpose] Configure ARP table entry aging time

[Parameter]

ParameterDescription
expire-timeTime value, range 60-7200, unit s

[View] System configuration view

[Use Cases]

sonic# configure terminal
sonic(config)# arp timeout 500