From owner-freebsd-net Thu Jan 14 15:51:05 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA04354 for freebsd-net-outgoing; Thu, 14 Jan 1999 15:51:05 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from marcos.networkcs.com (marcos.networkcs.com [137.66.16.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA04349 for ; Thu, 14 Jan 1999 15:51:02 -0800 (PST) (envelope-from mks@us.networkcs.com) Received: from us.networkcs.com (us.networkcs.com [137.66.11.15]) by marcos.networkcs.com (8.9.0.Beta5/8.9.0.Beta5) with ESMTP id RAA12896; Thu, 14 Jan 1999 17:49:51 -0600 (CST) Received: (from mks@localhost) by us.networkcs.com (8.8.7/8.8.7) id RAA02728; Thu, 14 Jan 1999 17:49:49 -0600 (CST) From: Mike Spengler Message-Id: <199901142349.RAA02728@us.networkcs.com> Subject: Re: Static routes at boot.... In-Reply-To: <001b01be400f$603892c0$0afea8c0@ws2600> from Derek Jewett at "Jan 14, 99 02:43:57 pm" To: djewett@snowcrest.net (Derek Jewett) Date: Thu, 14 Jan 1999 17:49:49 -0600 (CST) Cc: net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Derek Jewett said: > 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 > > For your example, put these lines into rc.conf: static_routes="somewhere" route_somewhere="-net 158.96.87.64/26 158.96.243.1" Although the "-n" option won't be set... -- Mike Spengler Network Computing Services, Inc. Email: mks@networkcs.com 1200 Washington Ave. So. Phone: +1 612 337 3557 Minneapolis MN 55415 FAX: +1 612 337 3400 (aka Minnesota Supercomputer Center) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message