How to use arping to bind IP in a Linux Server

arping can be a very handy tool when your main task is to migrate IP addresses across servers. When we migrate IP addresses, the switch or the networking device will cache the information and switch the packets to the old server, and thereby keeping the IP in the new server down.

In such cases, arping command can help.

You need to login to the new server as root and issue the following command so that it forces the device to make the IP resolve from the new server.

 arping -I eth0  -s IPADD -c2 BROADCAST

An example will be

arping -I eth0 -s 192.168.1.3 -c2 192.168.1.1

Now the IP will start resolving from the new server.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close Menu