From owner-freebsd-questions Wed Jun 6 2:35:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 8973E37B409 for ; Wed, 6 Jun 2001 02:35:31 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f569Ynv53768; Wed, 6 Jun 2001 12:34:49 +0300 (EEST) (envelope-from ru) Date: Wed, 6 Jun 2001 12:34:49 +0300 From: Ruslan Ermilov To: Peter Salvage Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Syntax check - static_routes Message-ID: <20010606123449.E37378@sunbay.com> Mail-Followup-To: Peter Salvage , freebsd-questions@FreeBSD.ORG References: <004301c0ee65$e2dcc280$0200a8c0@ait.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <004301c0ee65$e2dcc280$0200a8c0@ait.co.za>; from wizard@sybaweb.co.za on Wed, Jun 06, 2001 at 10:51:32AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Jun 06, 2001 at 10:51:32AM +0200, Peter Salvage wrote: > Hi all > > Wanting to add static routes to my rc.conf file. Could someone please do a > syntax check for me? > > static_routes="-net 192.168.2.128 -netmask 255.255.255.192 192.168.0.9" "-net > 192.168.2.228 -netmask 255.255.255.252 192.168.0.9" > > ie I separate the two statements with a whitespace? I assume I can add as many > routes as I want in this fashion? > Nope, the correct syntax is documented in the rc.conf(5) manpage. Or in your case: static_routes="route1 route2" route_route1="-net 192.168.2.128 -netmask 255.255.255.192 192.168.0.9" route_route2="-net 192.168.2.228 -netmask 255.255.255.252 192.168.0.9" Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message