Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2003 17:14:46 -0600 (CST)
From:      Mike Silbersack <silby@silby.com>
To:        "J. W. Ballantine" <jwb@homer.att.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: route pointing to a gateway that's not on net
Message-ID:  <20030306171300.V855@odysseus.silby.com>
In-Reply-To: <200303051416.h25EGaF04635@akiva.homer.att.com>
References:  <200303051416.h25EGaF04635@akiva.homer.att.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030306171300.V855>