From owner-freebsd-questions Wed Aug 23 16:14:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from bryden.apana.org.au (bryden.apana.org.au [203.3.126.129]) by hub.freebsd.org (Postfix) with ESMTP id 065A037B43C for ; Wed, 23 Aug 2000 16:14:17 -0700 (PDT) Received: from ROADRUNNER (roadrunner.apana.org.au [203.3.126.132]) by bryden.apana.org.au (8.9.3/8.9.3) with SMTP id JAA19593 for ; Thu, 24 Aug 2000 09:18:18 +1000 (EST) (envelope-from dougy@bryden.apana.org.au) Message-ID: <011001c00d58$9f87bc90$847e03cb@ROADRUNNER> From: "Doug Young" To: Subject: route add syntax in rc.conf Date: Thu, 24 Aug 2000 09:19:39 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.5600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.5600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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