Command Line Reference
IP Service
ARP Configuration
12 min
arp configuration show arp \[command] show arp \[purpose] show ip arp table \[view] system view \[ use cases ] sonic# show arp address macaddress iface vlan type \ 192 168 0 1 6c\ b3 11 33\ aa 6c mgmt dynamic 192 168 0 237 8c\ ec 4b 67\ ae 42 mgmt dynamic 192 168 14 35 00 0c 29 89\ bc 9b mgmt dynamic total number of entries 3 show arp proxy count \[command] show arp proxy count \[ second ] \[purpose] show the number of arp proxy replies \[parameter] parameter description second specify the number of seconds to view, range 1 3600 \[view] system view \[ use cases ] sonic# show arp proxy count show interface arp proxy status \[command] show interface arp proxy status \[purpose] show interface arp proxy status \[view] system view \[ use cases ] sonic# show interface arp proxy status + + + \| interfaces | status | +==============+============+ \| ethernet49 | disable | + + + \| ethernet50 | disable | + + + \| vlan400 | anycast gw | + + + clear neighbor \[command] clear neighbor {all|static|dynamic} clear neighbor interface { interface type } interface name \[purpose] clear arp, ndp table entries \[parameter] parameter description interface type interface type, optional ethernet, vlan, link aggregation interface name optional interface num, vlan id, lag id \[view] system view \[ use cases ] sonic# clear neighbor all 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, optional interface num, vlan id, lag id \[view] system configuration view \[ use cases ] sonic# configure terminal sonic(config)# arp static 3 3 3 3 00 00 00 00 00 01 vlan 5 sonic(config)# arp static 4 4 4 4 00 00 00 00 00 02 ethernet 1 sonic(config)# arp static 5 5 5 5 00 00 00 00 00 03 link aggregation 1 arp timeout \[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 terminal sonic(config)# arp timeout 500 arp proxy \[command] arp proxy mode { mode type } no arp proxy \[purpose] enable the arp proxy function of the interface \[parameter] parameter description mode type default/evpn/anycast gw,default mode by “default” \[view] interface view \[usage scenario] in scenarios where layer 2 broadcast isolation is enabled, allowing communication between devices in the same lan requires a common approach one common method is to enable arp proxy on the interface acting as the gateway this allows the gateway's mac address to be sent to devices initiating arp requests, effectively converting local layer 2 communication into layer 3 routed communication in a vxlan scenario, enabling the arp proxy evpn mode allows the local vtep to use the arp information synchronized from the remote end via evpn to perform proxy responses for local terminal arp requests \[comment] on devices with arp proxy enabled, you may need to use the arp to host convert enable command to convert learned arp entries into host routes, ensuring proper routing \[ use cases ] sonic# configure terminal sonic(config)# interface vlan 400 sonic(config vlanif 400)# arp proxy mode anycast gw arp broadcast {copy|trap} \[command] arp broadcast {copy|trap} \[purpose] configure the handling actions for arp broadcast messages on the device \[parameter] parameter description copy copy arp broadcast messages, one for cpu processing and another broadcast to other interfaces trap only send arp messages to the cpu for processing \[view] system configuration view \[usage scenario] this command is commonly used in conjunction with the "broadcast drop" command to change the processing method of arp messages to only send to the cpu without forwarding, completely isolating layer 2 broadcast messages between terminals \[ use cases ] sonic# configure terminal sonic(config)# arp broadcast trap
