0

This has bothered me for quite a while but I never found out why or how to change the behavior.

ip duplicates could be caused by typos or dhcp errors etc., but they do occur from time to time.

in rpm-based systems such as centos, the old server with the duplicate ip wins, and the new server will get an error in bringing up the nic (ip address already used). this is somewhat harmless because we can just fix the system that is coming up.

ubuntu only the other hand happily grabs the used ip for itself and leave the old server/device without a valid ip. this is the more dangerous behavior because it causes outages.

what i want is to change the ubuntu behavior to that of the centos/rhel so would appreciate any help.

1 Answer 1

2

This functionality in redhat based systems is provided by arping.

They use the command (line 261 in /etc/sysconfig/network-scripts/ifup-eth)

/sbin/arping -q -c 2 -w 3 -D -I <dev> <ip>

The important bit is -D which is used for duplicate detection mode. Basically throw that in your startup scripts to check if the address is available before adding it.

1
  • cool, thanks! that was what i was looking for. i am going to
    – johnshen64
    Nov 21, 2011 at 21:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .