From owner-freebsd-net Thu Jan 14 16:43:42 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA13892 for freebsd-net-outgoing; Thu, 14 Jan 1999 16:43:42 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from hawaii.conterra.com (hawaii.conterra.com [209.12.164.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA13883 for ; Thu, 14 Jan 1999 16:43:40 -0800 (PST) (envelope-from myself@conterra.com) Received: from dmaddox.conterra.com (dmaddox.conterra.com [209.12.169.48]) by hawaii.conterra.com (8.8.8/8.8.7) with ESMTP id TAA29508; Thu, 14 Jan 1999 19:42:28 -0500 (EST) Received: (from myself@localhost) by dmaddox.conterra.com (8.9.1/8.9.1) id TAA06163; Thu, 14 Jan 1999 19:42:23 -0500 (EST) (envelope-from myself) Date: Thu, 14 Jan 1999 19:42:22 -0500 From: "Donald J . Maddox" To: Derek Jewett Cc: net@FreeBSD.ORG Subject: Re: Static routes at boot.... Message-ID: <19990114194222.A6120@dmaddox.conterra.com> Reply-To: dmaddox@conterra.com References: <001b01be400f$603892c0$0afea8c0@ws2600> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <001b01be400f$603892c0$0afea8c0@ws2600>; from Derek Jewett on Thu, Jan 14, 1999 at 02:43:57PM -0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Jan 14, 1999 at 02:43:57PM -0800, Derek Jewett wrote: > What is the best way to add static routes at boot time..? Currently I just > added a line in my rc.local like below; > > route -n add -net 158.96.87.64/26 158.96.243.1 > > this works, but I saw a "routes" section in the rc.conf file that states it > is for a static route list? Has anyone made entries into this field? I was > just curious what the syntax is... Thanks > > Today is Syntax 101 for me! For each route you want to add, put a name in the static routes list in rc.conf, followed by a route_ line for each, like this: static_routes="net1 net2 host1" route_net1="-net 158.96.87.64/26 158.96.243.1" route_net2="-net 224.0.0.0/8 158.96.243.1" route_host1="158.96.243.12 158.96.243.7" You can learn more by looking at /etc/rc.network and seeing how it's actually done... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message