From owner-freebsd-stable Wed Jul 3 1:24:48 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13E7D37B400 for ; Wed, 3 Jul 2002 01:24:45 -0700 (PDT) Received: from smurf.jnielsen.net (12-254-136-47.client.attbi.com [12.254.136.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82BFA43E31 for ; Wed, 3 Jul 2002 01:24:44 -0700 (PDT) (envelope-from stable@jnielsen.net) Received: from max (max.local [192.168.0.9]) by smurf.jnielsen.net (8.12.3/8.12.3) with SMTP id g638OfVo000242; Wed, 3 Jul 2002 02:24:41 -0600 (MDT) (envelope-from stable@jnielsen.net) Message-ID: <009d01c2226b$168d76d0$0900a8c0@max> From: "John Nielsen" To: "James Vella" , References: <1025684244.4f5e4ff9JamesV@myrealbox.com> Subject: Re: adding persistent routes Date: Wed, 3 Jul 2002 02:24:45 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "James Vella" To: Sent: Wednesday, July 03, 2002 2:17 AM Subject: adding persistent routes > hi guys, > > i have spent many an hour tring to find a way to add another static route (apart from the default gateway)within freebsd v4.5. > > please shed some light > > appologies to these who regard this a dumb question It's not a dumb question, but it does belong on another forum (namely freebsd-questions). Anyway, look at the route(8) manpage if you haven't already. Here's the basic syntax to add a route: route add target.address.or.network router.address For example: route add 10.0.0.0/24 192.168.3.1 Will make 192.168.3.1 the router for 10.0.0.1 - 10.0.0.254. There are a few different formats you can use to specify a network, or just specify a single address if that's all you want. JN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message