Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Aug 2000 09:19:39 +1000
From:      "Doug Young" <dougy@bryden.apana.org.au>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   route add syntax in rc.conf
Message-ID:  <011001c00d58$9f87bc90$847e03cb@ROADRUNNER>

next in thread | raw e-mail | index | archive | help
I wish to add a few routes automatically on boot, effectively achieving the
same
as running "route add xxx.xxx.xxx.xxx  yyy.yyy.yyy.yyy" manually. I
understand
this can be done by adding lines in rc.conf, however neither man rc.conf nor
the
mailing list archives are particularly explicit on the exact syntax
required.

I found a posting that said to use something like

static_routes="melo2"
route_melo2="-net 192.168.2  129.2.161.92"

however its not clear exactly what the "melo2" refers to

another posting says

static_routes="inside"
route_inside="-net 10.0.0.0/8  10.29.2.1"

again there's no explanation of what the "inside" parameter refers to

another posting talks about adding the "static_routes" stuff to
etc/sysconfig, which I guess must be something used in older versions of
FreeBSD.

static-routes="interprise lab lukeman"
route_interprise="172.18.0.0  192.168.1.254"
route_lukeman="172.17.0.0. 192.168.1.254"
route_lab="172.16.0.0.  192.168.1.254"

This implies that interprise / lab / lukeman are just labels, as appears to
be confirmed by the question posted by Dean Hollister on 3/12/99 that
drew the suggestion from from Niels bank-Pedersen to use

route_nms="-net 192.168.15.192 192.168.233.59"
route_home="-net 192.168.75.0 192.168.233.59"
route_home2="-net 192.168.84.192 192.168.233.59"
static_routes="nms home home2"

Is it then correct to assume that an entry like the above in rc.conf will in
fact achieve the same as running "route add xxx.xxx.xxx.xxx
yyy.yyy.yyy.yyy" manually ... or is there
more to this than is apparent fromwhat I've read to date ??











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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?011001c00d58$9f87bc90$847e03cb>