IP conflict resolution

I am facing a problem from a user on the intranet who assigns the wrong IP address (e.g.192.168.1.5)to his workstation and hangs the sun-solaris-server which also has the same address as given by the user and hence hangs the net. I am looking for a service to detect and prevent such mal-assignments.
rksinglaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

daknight2000Commented:
could u explain the network configuration ?

and how came that usr is getting permision to assign the ip address of his own ???
0
ahoffmannCommented:
you can't prevent such settings as long as the user has root access.
To detect such things write a script, started periodically by cron, which checks MAC adresses, like:

#! /bin/csh -f
# assuming netmask 255.255.255.0
# and very Solaris specific
@i = 1
while ($i < 255)
   ping -s 192.168.1.$i 100 1
endw
arp -a|awk '{print $2" "$NF;}'|sort|uniq -d|mail -s"PANIC: duplicate IP" root
#
# script to be improved
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rksinglaAuthor Commented:
Dear ahoffman,

 We have a campus wide ATM network covering a total of 19 buildings (using fibre optical cables and utp cabling within the buildings). We have a sun-solaris system as a server with IP address 192.168.1.5 (running a proxy)

    As the users on their workstations must setup the machines by specifying the IP address assigned to  their machine, the net mask and the gateway. Some users by mistake assign address of our server to their local machine, resulting in server halt and hence intranet halt.

Please look into the problem to give more elaborate solution.

Thanks.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

daknight2000Commented:
y dont u make use of dhcp or bootp, so that users would not need to setup their machines manually???
0
rksinglaAuthor Commented:
We have 19 buildings on the campus, each having addresses as 192.168.1.1 to 192.168.1.254
192.168.2.1 to 192.168.2.254
---
---
--
and so on

I think it will be very difficult to setup DHCP or BOOTP and maintain for all the 19 networks. When I run the script sent by you then I only get the MAC address from which I can not identify  the user creating trouble.

Once again let me explain the problem :

Suppose a user has IP address as 192.1.168.37 and when he sets up his machine manually, he gives by mistake IP address as 192.168.1.5 which is the IP address of our SUN-SOLARIS server. I simply want to know that the problem has come  from the machine whose address should have been 192.168.1.37, so that address could be corrected and server is not halted.

0
daknight2000Commented:
>>>>I simply want to know that the problem has come  from the machine whose address should have been 192.168.1.37, so that address could be corrected and server is not halted.


may be arp would solve this problem.

but still every thing should be done manually .. and i guess u would be mad while runing between 19 buildings
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.