From owner-freebsd-net Thu Mar 6 18:12:52 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 DF37F37B401 for ; Thu, 6 Mar 2003 18:12:50 -0800 (PST) Received: from odysseus.silby.com (d77.as6.nwbl0.wi.voyager.net [169.207.128.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F91B43FDF for ; Thu, 6 Mar 2003 18:12:47 -0800 (PST) (envelope-from silby@silby.com) Received: from odysseus.silby.com (localhost [127.0.0.1]) by odysseus.silby.com (8.12.7/8.12.7) with ESMTP id h26NEl0K001470; Thu, 6 Mar 2003 17:14:47 -0600 (CST) (envelope-from silby@silby.com) Received: from localhost (silby@localhost) by odysseus.silby.com (8.12.7/8.12.7/Submit) with ESMTP id h26NEkoP001467; Thu, 6 Mar 2003 17:14:47 -0600 (CST) X-Authentication-Warning: odysseus.silby.com: silby owned process doing -bs Date: Thu, 6 Mar 2003 17:14:46 -0600 (CST) From: Mike Silbersack To: "J. W. Ballantine" Cc: freebsd-net@FreeBSD.ORG Subject: Re: route pointing to a gateway that's not on net In-Reply-To: <200303051416.h25EGaF04635@akiva.homer.att.com> Message-ID: <20030306171300.V855@odysseus.silby.com> References: <200303051416.h25EGaF04635@akiva.homer.att.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Wed, 5 Mar 2003, J. W. Ballantine wrote: > I was recently following a thread on tech-netbsd that was discussing > the routing tables when the gateway address was on a 10.x.x.x network > while the machine was assigned a 209.122.66.x address. The long and short > of the discussion (as I understand the discussion) was that this was > that while it can be accessed via windose and Linux ( > > > On Linux, we could do this to get around that minor problem: > > > route add -host 192.168.14.88 dev eth0 > ) that is was an evil, ugy illegal network route and that it not possible, > will not be implemented in NetBSD. > > Now since my cable ISP has me provised it this manner, and since I can't > find a method to get out from FreeBSD using the route command. I was > wondering if a) I missed something and there is some option for the route > command that allows to route to be setup, or if not will netgraph allow me > to setup this route? > > Thanks > > Jim Ballantine Have you tried using arp to create an arp entry for that IP address? That may allow the route command to then work, as it'll believe that you're local to the router. (Not tested, although I recall doing something similar before.) Alternately, using arp to assign a *fake* IP address which is on your subnet to the ethernet address of the router, then add a default route to that. Maybe the router will still pass the packets. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message