Date: Sat, 27 Feb 1999 12:45:34 +1030 From: Greg Lehey <grog@lemis.com> To: Hugh Blandford <hugh@island.net.au>, questions@FreeBSD.ORG Subject: Re: syntax of static routes in rc.conf Message-ID: <19990227124534.M431@lemis.com> In-Reply-To: <3.0.6.32.19990227121414.0086d320@mail.island.net.au>; from Hugh Blandford on Sat, Feb 27, 1999 at 12:14:14PM %2B1100 References: <3.0.6.32.19990227121414.0086d320@mail.island.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, 27 February 1999 at 12:14:14 +1100, Hugh Blandford wrote:
>
> I want to put a static route in rc.conf (ver 2.2.8) and am not sure of the
> syntax of the line. Can someone tell me? Where are all these things
> documented?
The real man page you want is route(8). What you put in your static
routes in rc.conf are the parameters to a 'route add' command. For
example, if you want to write
# route add foo bar
you'll put something like this in your rc.conf:
static_routes="foo loopback"
route_foo="foo bar"
route_loopback="${hostname} 127.1"
This will cause rc.network to execute the commands
route add foo bar"
route add ${hostname} 127.1
Greg
--
When replying to this message, please copy the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key
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?19990227124534.M431>
