• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

A cPanel Tech

The Diaries of a Linux Server Administrator

  • Home
  • About
  • Privacy
You are here: Home / Control Panels / How to use arping to bind IP in a Linux Server

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/cptech/public_html/wp-content/themes/genesis/lib/functions/image.php on line 116

How to use arping to bind IP in a Linux Server

October 29, 2015 By admin Leave a Comment

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.

Filed Under: Control Panels, Linux, Tutorials Tagged With: arping, linux

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Primary Sidebar

Copyright 2018 CPanelTech