From owner-freebsd-net Fri Mar 14 2:24:36 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BA2837B401 for ; Fri, 14 Mar 2003 02:24:35 -0800 (PST) Received: from gvr.gvr.org (gvr.gvr.org [212.61.40.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB47B43FCB for ; Fri, 14 Mar 2003 02:24:32 -0800 (PST) (envelope-from guido@gvr.org) Received: by gvr.gvr.org (Postfix, from userid 657) id 585BC1A; Fri, 14 Mar 2003 11:24:31 +0100 (CET) Date: Fri, 14 Mar 2003 11:24:31 +0100 From: Guido van Rooij To: "J. W. Ballantine" Cc: Iasen Kostov , Kevin_Stevens@pursued-with.net, freebsd-net@FreeBSD.ORG Subject: Re: route pointing to a gateway that's not on net Message-ID: <20030314102431.GA97899@gvr.gvr.org> References: <20030307065558.W52594-100000@shadowhand.OTEL.net> <200303132034.PAA04880@hera.homer.att.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200303132034.PAA04880@hera.homer.att.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Mar 13, 2003 at 03:34:18PM -0500, J. W. Ballantine wrote: > round-trip min/avg/max/stddev = 3.022/3.428/5.029/0.801 ms > # ping 207.172.3.8 <<< one of isp's name server > PING 207.172.3.8 (207.172.3.8): 56 data bytes > ping: sendto: Host is down > ping: sendto: Host is down > ping: sendto: Host is down > ping: sendto: Host is down > > So this method allows my system to get to the > modem/dhcp server/gateway, but no further. (when I ping > from windows I get a response, so the system isn't down.) That is because 207.172.3.8 is not directly connected. By speficying a route entry with -iface you specify it is directly connected. That is the reason you can now reach the 10.*hosts. The problem with the 207.172.3.* hosts exists because your routing table expects the 207.172.3.* range to be directly connected. So either you have to make them apear directly connected, or you must say that they are not directly connected. The first can be doe by having your gateway do proxy arp, or by manually setting arp entries on your host (for all 207.172.3.* hosts, do arp -s host MAC, where MAC is the mac address of your gateway). I don't know how to do the second one, except for adding single host routes for each host, i.e.: route add host-ip-address gateway-ip-address. -Guido To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message