Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting a duplicate ip address in Unix

Status
Not open for further replies.

menace212

Programmer
Jul 11, 2003
144
US
What command can I use to detect if there is a duplicate ip address on the network. Can I use snoop with what or is ther something else I can use, without use any external appliation.

ex

snoop -arp mac-address {ip address}

what would be the correct format for this
 
assuming you are on the same subnet, trying pinging your broadcast address

you should not get anything duplicate there :)

HTH
 
Generally you would see problems if duplicates exist on servers and AIX for instance would log it in the error report.
If you want to scan the network for any duplicated amoung servers and workstations, you could use a little tool called nbtscan (

"If you always do what you've always done, you will always be where you've always been."
 
I have a suggestion:
If you have two machines with the same address.
Turn off or unplug from network the machine that you know that have the IP.
Go to a third machine, clear the ARP table and ping the IP.
If it answer, the Ip is duplicate and now you have the ARP of this machine.

Luis Henrique Pinho
No Orkut - Unix Brasil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top