Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 1998 18:10:58 -0700
From:      Reggie Perry <perry@zso.dec.com>
To:        "'FreeBSD Questions Mailing List'" <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Can I add this to rc.conf?
Message-ID:  <c=US%a=_%p=zso%l=ZSOMAIL-980418011058Z-17231@zsomail3.zso.dec.com>

next in thread | raw e-mail | index | archive | help
Thanks to all who replied. I decided to use this method, but I will keep
Doug's suggestion in mind if I put together a box with lots of
interfaces. Thanks again.

-Reggie

-----Original Message-----
From: Ruslan Ermilov [mailto:ru@ucb.crimea.ua]
Sent: Friday, April 17, 1998 12:13 AM
To: 'FreeBSD Questions Mailing List'
Subject: Re: Can I add this to rc.conf?


On Thu, Apr 16, 1998 at 07:34:22PM -0700, Reggie Perry wrote:
> Hi there,
> 	I have a bunch of route add commands that I would like to have run at
> system startup. They look like this:
> 
> 	route add -net x.x.x -interface y.y.y.y
> 
> It is not clear if I should or even can put them in rc.conf or if I
> should put them in rc.local. What is the convention?

Take a look at /etc/rc.conf and /etc/rc.network ;-)

Then define something like this:
static_routes="... xxx ..."
route_xxx="-net x.x.x -interface y.y.y.y"

Regards,
-- 
Ruslan Ermilov          System Administrator
ru@ucb.crimea.ua        United Commercial Bank
+380-652-247647         Simferopol, Crimea
2426679                 ICQ Network, UIN

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

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?c=US%a=_%p=zso%l=ZSOMAIL-980418011058Z-17231>