Resolving IP address conflicts on a LAN
We have our LAN set up with DHCPD providing fixed IP addresses to the systems. However we are facing IP address conflicts if some one connects a laptop and assigns an IP address belonging to another system.
Is there a way to prevent this? Or ways to detect computers causing this?
Solution 1:
If users assign IPs to their systems, they'll choose whatever they fancy, and no amount of begging, asking, shouting and threatening is going to change this. Therefore, the safest way would be to separate subnets of servers and users. In that setup a user can conflict only with another user and disrupt one person at worst. What is more, if they assign themselves an address from the servers' network, their networking will not work at all, and that's a mechanism that speeds up users' learning a lot.
That's the only way you can prevent people with administration rights assigning reserved IPs to their stations -- make it not work.
As far as detection goes, you wait for a report. Either a user, who had a working configuration suddenly looses access to the network (that is, there's a newcomer with a Windows station that does not respect the TCP/IP standard of not bringing an interface up if it detects an IP address conflict), or a user reports in, that he configured an IP address, and it does not work.
In the former case, you know that the wrongdoer took over the IP address. You can connect to the same network and use arp
to determine his MAC address. If you have an assets database with MAC addresses of users' computers, you have the perpetrator. If you don't then it's time to see which port of which switch sees this MAC address on its interface, go to the corresponding wall socket and see whose cable is plugged in. Bring a 2x4 LART.
In the latter case, the newcomer is the one who tries fancy tricks with his network setup, but the newcomer has a well-behaved OS installed. Instruct the user on the benefits of using a DHCP service set up by his hard-working administrators. If he does not appreciate, use the above-mentioned LART ;).