From owner-freebsd-net Wed Mar 5 10:47:33 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 A135037B401 for ; Wed, 5 Mar 2003 10:47:31 -0800 (PST) Received: from pursued-with.net (adsl-66-125-9-242.dsl.sndg02.pacbell.net [66.125.9.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDC1143F85 for ; Wed, 5 Mar 2003 10:47:30 -0800 (PST) (envelope-from Kevin_Stevens@pursued-with.net) Received: from pursued-with.net (localhost [127.0.0.1]) by pursued-with.net (8.12.6/8.12.8) with SMTP id h25IlUPg007697; Wed, 5 Mar 2003 10:47:30 -0800 (PST) (envelope-from Kevin_Stevens@pursued-with.net) Received: from 192.85.47.2 (SquirrelMail authenticated user imap) by new.host.name with HTTP; Wed, 5 Mar 2003 10:47:30 -0800 (PST) Message-ID: <12883.192.85.47.2.1046890050.squirrel@new.host.name> Date: Wed, 5 Mar 2003 10:47:30 -0800 (PST) Subject: Re: route pointing to a gateway that's not on net From: "Kevin Stevens" To: In-Reply-To: <200303051827.h25IRxF05514@akiva.homer.att.com> References: Your message of "Wed, 05 Mar 2003 09:57:55 PST." <200303051827.h25IRxF05514@akiva.homer.att.com> X-Priority: 3 Importance: Normal Cc: Reply-To: Kevin_Stevens@pursued-with.net X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 > 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