Error, some other host already uses address. Workaround

If you receive such message on your virtual machine, you have workaround to fix this problem.

error-ip

To check ip and mac:

[root@demo devices]# arping -c 2 -w 3 -D -I eth9 XX.XX.XX.X

ARPING XX.XX.XX.X from 0.0.0.0 eth9
Unicast reply from XX.XX.XX.X   [00:50:56:xx:xx:xx:xx]  0.697ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)

 

In the interface initialization script /etc/sysconfig/network-scripts/ifup-eth it has the following:

       if ! /sbin/arping -q -c 2 -w 3 -D -I ${REALDEVICE} ${ipaddr[$idx]} ; then
         net_log $"Error, some other host already uses address ${ipaddr[$idx]}."
         exit 1
        fi

Let’s break that first line down piece by piece:

  • if ! – The if command combined with a boolean operator that equates to the logical not. In other words, it inverts the exit status of the command.
  • arping – One of my favorite commands! Useful for manually issuing ARP requests to confirm ownership of an IP (DUH).
  • -q – Quiet/no output. Nothing is displayed.
  • -c 2 – The number of ARP request packets to send.
  • -w 3 – The amount of time (in seconds) to wait for a response.
  • -D – Duplicate address detection mode (for the gory details, see RFC2131, 4.4.1).
  • -I ${REALDEVICE} – The interface to issue the arp request from. I haven’t dug deep enough to find where the variable is set (although I suspect it’s a combination of the DEVICE variable defined in ifcfg-eth files and some logic under /etc/sysconfig/network-scripts/network-functions
  • ${IPADDR} – The IP address to check for.
  • ; then – ‘nuff said.

 

Just comment it:

comment

And be happy 🙂

no error ip

Stay tuned!