Date: Thu, 14 Jan 1999 19:42:22 -0500 From: "Donald J . Maddox" <dmaddox@conterra.com> To: Derek Jewett <djewett@snowcrest.net> Cc: net@FreeBSD.ORG Subject: Re: Static routes at boot.... Message-ID: <19990114194222.A6120@dmaddox.conterra.com> In-Reply-To: <001b01be400f$603892c0$0afea8c0@ws2600>; from Derek Jewett on Thu, Jan 14, 1999 at 02:43:57PM -0800 References: <001b01be400f$603892c0$0afea8c0@ws2600>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 14, 1999 at 02:43:57PM -0800, Derek Jewett wrote: > 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 > > Today is Syntax 101 for me! For each route you want to add, put a name in the static routes list in rc.conf, followed by a route_<name> line for each, like this: static_routes="net1 net2 host1" route_net1="-net 158.96.87.64/26 158.96.243.1" route_net2="-net 224.0.0.0/8 158.96.243.1" route_host1="158.96.243.12 158.96.243.7" You can learn more by looking at /etc/rc.network and seeing how it's actually done... 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?19990114194222.A6120>