Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How can I know the IP address was changed immediately?

1 view
Skip to first unread message

JohnShi

unread,
Feb 19, 2009, 6:35:52 AM2/19/09
to
Hi, everyone,

There are three hosts, A1, A2 and B,

First, B connected to A1 through TCP, and state is ESTABLISHED.
Now, I move the IP address from A1 to A2, that is to say,
A1 was changed to A2, B will connect to A2 after a while if B sent ARP
request,
Ok, I know B will be failed and get the error message: connection
reset by peer.
But, this case is what I want.

In another occasion, There are two hosts, A and B,
A has 2 IP address on eth0, IP1 and IP2, I create a TCP connection
from A(IP1) to A(IP2),
and it's ESTABLISHED. Now, I move the A(IP2) from A to B, that is to
say,
B was changed to A, but A(IP1) never connect to B(IP2), because this
connection
will not send ARP request, it's always through local, so I would not
get the error message,
and hanging about 12 minutes.

How can I know the IP address was changed immediately,
and I really want to get "connection reset by peer" in second
case. :-) thank you!

- John Shi

0 new messages