home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.protocols.tcp-ip
- Subject: Re: ARP & Duplicate IP addresses
- Date: 23 Nov 1992 05:40:48 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 38
- Message-ID: <1epqt0INN64d@early-bird.think.com>
- References: <1992Nov20.202906.9279@jupiter.sun.csd.unb.ca>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <1992Nov20.202906.9279@jupiter.sun.csd.unb.ca> dedgar@mta.ca writes:
- >- Is it a good idea to ARP your own IP address on startup? A returning
- > ARP would tell you that the address was a duplicate.
- > - if so is it a good idea to automatically shut your interface down
- > if a duplicate IP address is detected on startup? Are there any
- > situations where false returns might be reported?
-
- There are two situations where you're likely to get a response. One is
- when two machines are configured with the same IP address. The other is
- when you're configured for the wrong subnet and there's a router that
- implements proxy ARP. Either way, there's a serious configuration problem
- and the user should be informed.
-
- > - What about detecting one after startup? Should you advise the user
- > and gently start terminating connections? Could be real annoying.
-
- I think you should advise the user, but not terminate connections.
- However, if packets reach the other host, it may terminate your
- connections.
-
- >- If you receive an incoming ARP request and the sender IP address matches
- > yours should you reply to it? Doing so would advice the other node that
- > a duplicate exists (assuming it checks) but also could hopelessly confuse
- > a host that doesn't. All of the implementations that I have tested do not
- > reply - but I have not tried all that many.
-
- Either you or the other host is hopelessly confused already, so it's not
- clear that replying would make things too much worse.
-
- >- What are the consequenses of staying up with a duplicate IP address?
-
- Some packets that are intended for you will be sent to the other host, and
- vice versa. Confusion will reign.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-