HowTo: Linux Send a Gratuitous ARPs Requests [ Networking ]

How do I send gratuitous ARPs under Linux? How do I tell my DUMMY router that the IP is over here now, under Linux operating systems?

You can use the arping command to send a gratuitous reply using the -A option. arping can send ARP REQUEST to a neighbor host:
# arping -U {IP-HERE} -I {Interface-Name-HERE}
# arping -A -c {Number} -I {Interface-Name-HERE}
# arping -U -I eth1

The following command will send a Gratuitous ARP reply, four times, on the eth1 interface for IP address
# arping -c 4 -A -I eth1


  1. -A : ARP reply
  2. -C 4: Send it four times
  3. -I eth1: Use eth1 interface
  4. Replace this with your actual IP address.

Finally, use the arp command to verify the same:
# arp -a

=> Related: Router ARP Cache is Not Releasing Linux / UNIX Server IP address

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • ALERTA May 1, 2014 @ 3:49

    The difference between -A and -U options are not explained. So why talikng about?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum