On Sun, Oct 23, 2005 at 02:07:40PM +0200, Enrico Zini wrote:
> On Sun, Jun 05, 2005 at 07:34:46PM +0200, Marc Haber wrote:
> > Given is a site with a single Linux gateway which has a multitude of
> > ethernets attached. DHCP is not in use, and the MAC addresses of the
> > interface are not known (might change any time). A notebook needs to
> > be able to use any of these networks, so it should detect its network
> > regardless of which physical network it has been plugged in.
> [...]
> > iface net1 inet static
> >         test peer address 10.11.10.62
> > 
> > iface net1 inet static
> >         test peer address 10.12.10.62
> > This doesn't seem to work, net1 is always chosen.
> > 
> > It looks like the gateway is answering to arping 10.11.10.62 even if
> > the arping request comes in from the network 10.12.10.
> > I didn't debug in detail, but I surely hope that the replies can be
> > distinguished, so that guessnet can see which answer is the correct one.
> > I'll happily debug if you tell me what to do.
> 
> Sorry for the late reply.  This looks difficult: the only way to
> distinguish the reply would be by IP or by MAC.  However, from what you
> said, the IP is random among the possible subnets, and the MAC could
> change at any time.

I agree.

> Perhaps there are other machines in the subnet you can test for using
> the MAC address, like a network printer or another host?

That would make guessnet depend on infrastructure that might be moved
or replaced without really having an impact on networking.

The best way to solve this would be to keep Linux from answering ARP
requests for IP adresses that are on other interfaces, but that is
clearly out of guessnet's scope.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to