LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-09-2008, 08:37 PM   #1
hocheetiong
Member
 
Registered: Jul 2007
Location: Penang , Malaysia.
Distribution: red hat linux
Posts: 133

Rep: Reputation: 15
Smile How to check and solve IP Address conflict.


Hi, in my LAN there have around 20pcs linux and window XP system. There have 3 PC having a same IP Address,so IP Address conflict. How to check is it inside the LAN have any system(PC) having IP Address conflict,what command should be use arp or what? than can find the all IP Address conflict PC's MAC address.

Thank you.
 
Old 03-10-2008, 03:23 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,432

Rep: Reputation: 100Reputation: 100
if you switch them to get their address by dhcp you'll be better off probably
 
1 members found this post helpful.
Old 03-10-2008, 11:04 PM   #3
PEdroArthur_JEdi
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware | Debian
Posts: 17

Rep: Reputation: 1
Hy,

you may try:

# arping -I <interface> <ip_addr>

When this command is issued it sends arp probes trough the network interface of your choice for the specified ip address. If two or more NIC reply to your request, they are in conflict.
 
Old 03-18-2008, 11:44 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
I pasted your code & this is what I got:
Code:
# arping -I ethN www.xxx.yyy.zzz
arping: invalid option -- I
ARPing 2.01, by Thomas Habets <thomas@habets.pp.se>
usage: arping [ -0aAbdFpqrRv ] [ -w <us> ] [ -S <host/ip> ] [ -T <host/ip ]
              [ -s <MAC> ] [ -t <MAC> ] [ -c <count> ] [ -i <interface> ]
              <host/ip/MAC | -B>
Are we using different vers. of arping, or did you forget to proofread your post? (Can happen to anyone.)
 
1 members found this post helpful.
Old 03-20-2008, 11:45 PM   #5
PEdroArthur_JEdi
LQ Newbie
 
Registered: Jan 2008
Distribution: Slackware | Debian
Posts: 17

Rep: Reputation: 1
Yeah man, we got totally different versions of arping. Mine was written by another guy. It is shipped by default with slackware linux.
 
Old 03-21-2008, 03:47 AM   #6
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
system administration

If there are only 20 PC's involved, then I would suggest to assign proper and unique IP's to all of them and file the IP numbers in a proper system admin documentation (very handy sometimes).

If you don't want to deal with IP numbers and there is no reason to have fixed numbers, then you should really switch to DHCP, as already suggested. Even internal web, samba and other servers will work fine with DHCP, because they usually run forever, so their IP is not changed by the Router.

Hope this helps,
Regards,
SIMP

Fedora Development

Last edited by simplicissimus; 04-02-2008 at 04:50 AM.
 
Old 03-21-2008, 11:44 AM   #7
vpsville
LQ Newbie
 
Registered: Feb 2008
Location: Canada
Posts: 12

Rep: Reputation: 0
Using DHCP you can setup static leases on the router, so that you can refer to the machines by hostname (/etc/hosts) or IP address.

Its sounds like the LAN is a mess that needs to be fixed.
 
Old 03-22-2008, 02:17 AM   #8
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
For 20 IP addresses, it would be easy to keep track of them all in a spreadsheet. If you use Open Office Calc, a format for a column like "192.168.1."# and then filling down a range of numbers (the last octat) can be convenient. Then if someone needed another IP address, it would be a simple matter of opening the spreadsheet to find an available IP address. If you have some hosts that use DHCP and some servers on fixed IP addresses, make sure that you assign the fixed addresses outside the range of IP's that the DHCP server serves up. If you run a DHCP server on a computer, you can configure it to give fixed addresses to certain hosts based on their MAC addresses.

Last edited by jschiwal; 03-22-2008 at 04:40 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
check my squid config and solve probles ahuray_mazdaa Linux - Networking 5 09-22-2010 02:26 PM
How to check conflict on each package satimis Fedora 1 08-16-2004 10:31 AM
NFS vs. Shorewall conflict (should be easy to solve - :newbie: here) perry Linux - Networking 2 05-21-2004 12:49 PM
NFS vs. Shorewall conflict (should be easy to solve - :newbie: here) perry Linux - Security 3 05-05-2004 03:57 PM
How to solve the problem of IP conflict Bassam Linux - Networking 5 03-23-2004 02:24 AM


All times are GMT -5. The time now is 04:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration