From owner-freebsd-questions  Mon Mar 23 06:22:36 1998
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Received: (from majordom@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id GAA20673
          for freebsd-questions-outgoing; Mon, 23 Mar 1998 06:22:36 -0800 (PST)
          (envelope-from owner-freebsd-questions@FreeBSD.ORG)
Received: from horton.iaces.com (horton.iaces.com [204.147.87.98])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA20668
          for <freebsd-questions@FreeBSD.ORG>; Mon, 23 Mar 1998 06:22:33 -0800 (PST)
          (envelope-from proot@horton.iaces.com)
Received: (from proot@localhost)
	by horton.iaces.com (8.8.7/8.8.7) id IAA07940;
	Mon, 23 Mar 1998 08:20:56 -0600 (CST)
From: "Paul T. Root" <proot@horton.iaces.com>
Message-Id: <199803231420.IAA07940@horton.iaces.com>
Subject: Re: adding static routes
To: robert@mhi-tx.com (Robert)
Date: Mon, 23 Mar 1998 08:20:56 -0600 (CST)
Cc: freebsd-questions@FreeBSD.ORG
In-Reply-To: <35166E02.B0F@mhi-tx.com> from Robert at "Mar 23, 98 08:13:22 am"
X-Organization: USWEST !nterprise Networking - ACES
X-Phone: (612) 664-3385
X-Fax: (612) 664-4779
X-Page: (800) SKY-PAGE PIN: 537-7270
X-Address: 600 Stinson Blvd, Fl 1S
X-Address: Minneapolis, MN 55413
X-Mailer: ELM [version 2.4ME+ PL22 (25)]
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-questions@FreeBSD.ORG
Precedence: bulk
X-Loop: FreeBSD.ORG

In a previous message, Robert said:
> I need to add 4 routes to various networks, I can do this with the route
> add command but I wanted to use the "static routes = "" " entry in the
> rc.conf and I am not sure exactly what to put in there....
> it says a list of routes but how do I list them?? 
> separate by commas ?? put colon between dest+gateway?? have not been
> able to find an example...
> thanks in advance for answering such a newbie question...

Give the routes a name, then put those in rc.conf or rc.conf.local

static_routes="lab admin etc"                # Set to static route list (or leave empty).

route_lab="172.28.64.1"
route_admin="172.28.64.2"
route_etc="172.28.64.3"

To figure this out for yourself, you could have looked in /etc/rc* files
for references to static_routes and then read what it does. You'd find
it in rc.network:

    # Set up any static routes.  This should be done before router discovery.
    if [ "x${static_routes}" != "x" ]; then
	for i in ${static_routes}; do
	    eval route_args=\$route_${i}
	    route add ${route_args}
	done
    fi                                                    

-- 
HOW DO PEOPLE IN LOVE TYPICALLY BEHAVE?

"All of a sudden, the people get movie fever so they can sit together
 in the dark."            --Sherm, age 8

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message