From owner-freebsd-net Thu Mar 6 20:56:58 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 EE87E37B401 for ; Thu, 6 Mar 2003 20:56:56 -0800 (PST) Received: from mail.otel.net (gw3.OTEL.net [212.36.8.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C60E43FAF for ; Thu, 6 Mar 2003 20:56:55 -0800 (PST) (envelope-from ikostov@otel.net) Received: from judicator.otel.net ([212.36.9.113]) by mail.otel.net with esmtp (Exim 3.36 #1) id 18r9uV-000B0C-00; Fri, 07 Mar 2003 06:56:43 +0200 Date: Fri, 7 Mar 2003 06:56:42 +0200 (EET) From: Iasen Kostov To: "J. W. Ballantine" Cc: Kevin_Stevens@pursued-with.net, Subject: Re: route pointing to a gateway that's not on net In-Reply-To: <200303051912.h25JCUF05694@akiva.homer.att.com> Message-ID: <20030307065558.W52594-100000@shadowhand.OTEL.net> 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 Use : route add -net 10.17.47.37/32 -cloning -iface xl0 that sould work. On Wed, 5 Mar 2003, J. W. Ballantine wrote: > > Sorry, my typo. I did try > route add -net 10.0.0.0 -interface xl0 > and > route add -net 10.17.47.37 -interface xl0 > > As I recall both didn't respond with a error message, but when I tried to > get out it didn't work. > > I'll try again tonight and see what happens. > > Thanks > > ---------- In Response to your message ------------- > > > Date: Wed, 5 Mar 2003 10:47:30 -0800 (PST) > > To: > > From: "Kevin Stevens" > > Subject: Re: route pointing to a gateway that's not on net > > > > > > > Well it's not the way I wanted it, but it's the way I have to try and > > > work with. > > > > > > I tried the route add net 10.0.0.0 -interface (whatever) > > > and that didn't work for me. > > > > That's not the syntax I gave you, and obviously it needs to have your > > local interface information inserted. I can confirm that the command: > > > > route add -net 10.0.0.0 -interface em0 > > > > does parse and operate correctly on my 4.7 system, as confirmed by netstat > > -nr. That is the general approach for directing traffic out a local > > interface rather than to a same-subnet gateway. > > > > Try looking at man route for the details, or perhaps someone else will > > respond with a higher level of hand-holding. > > > > KeS > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message