ARP Configuration
ARP Configuration
Section titled “ARP Configuration”show arp
Section titled “show arp”[Command]
show arp
[Purpose]
Show IP ARP table
[View]
System view
[Use Cases]
sonic# show arpAddress 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 2clear neighbor
Section titled “clear neighbor”[Command]
clear neighbor all
[Purpose]
Clear ARP, NDP table entries
[View]
System view
[Use Cases]
sonic# clear neighbor allarp static
Section titled “arp static”[Command]
arp static A.B.C.D HH:HH:HH:HH:HH:HH interface-type interface-name
no arp static A.B.C.D interface-type interface-name
[Purpose]
Configure static ARP
[Parameter]
| Parameter | Description |
|---|---|
| A.B.C.D | IP address |
| HH:HH:HH:HH:HH:HH | MAC address |
| interface-type | Interface type, optional ethernet, vlan, link-aggregation |
| interface-name | Interface name |
[View]
System configuration view
[Use Cases]
sonic# configure terminalsonic(config)# arp static 3.3.3.3 00:00:00:00:00:01 interface vlan 5sonic(config)# arp static 4.4.4.4 00:00:00:00:00:02 interface ethernet 1sonic(config)# arp static 5.5.5.5 00:00:00:00:00:03 interface link-aggregation 1arp timeout expire-time
Section titled “arp timeout expire-time”[Command]
arp timeout expire-time
[Purpose]
Configure ARP table entry aging time
[Parameter]
| Parameter | Description |
|---|---|
| expire-time | Time value, range 60-7200, unit s |
[View]
System configuration view
[Use Cases]
sonic# configure terminalsonic(config)# arp timeout 500