Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 1999 17:49:49 -0600 (CST)
From:      Mike Spengler <mks@networkcs.com>
To:        djewett@snowcrest.net (Derek Jewett)
Cc:        net@FreeBSD.ORG
Subject:   Re: Static routes at boot....
Message-ID:  <199901142349.RAA02728@us.networkcs.com>
In-Reply-To: <001b01be400f$603892c0$0afea8c0@ws2600> from Derek Jewett at "Jan 14, 99 02:43:57 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901142349.RAA02728>