Duplicate IP address detection with multiple NICs

Posted by sfink on Server Fault See other posts from Server Fault or by sfink
Published on 2009-12-22T07:04:49Z Indexed on 2012/09/02 3:40 UTC
Read the original article Hit count: 535

Filed under:
|
|

I am using arping -D to detect duplicate IP addresses within a network when setting up servers. (The network is controlled by someone else, and we have had many issues with IP allocation in the past.) It works fine as long as my host has a single NIC on a given VLAN, but when my host has more than one (I have one with 9 NICs on one VLAN and 1 on the other), arping -D always returns false collisions.

The problem is that all 9 of my NICs respond to an ARP request for any of the IPs on those NICs. (These are real physical NICs, not aliases or anything.) I send out one ARP request packet, and get 9 ARP is-at ARP replies, one for each MAC address.

I could implement my own solution by sniffing packets and checking for any replies with a MAC address other than the local NICs', but it seems like there ought to be an easier way.

© Server Fault or respective owner

Related posts about linux

Related posts about networking