From owner-freebsd-stable Tue Oct 9 11:31:57 2001 Delivered-To: freebsd-stable@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 3BEFD37B40F for ; Tue, 9 Oct 2001 11:31:52 -0700 (PDT) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id f99IVpa97946; Tue, 9 Oct 2001 11:31:55 -0700 (PDT) Date: Tue, 9 Oct 2001 11:31:51 -0700 (PDT) From: Doug White To: Chris Johnson Cc: "Henshaw, Dave" , Subject: Re: invalid argument with static_routes In-Reply-To: <20011008164844.A21406@palomine.net> Message-ID: X-All-Your-Base: are belong to us MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 8 Oct 2001, Chris Johnson wrote: > On Mon, Oct 08, 2001 at 04:43:41PM -0400, Henshaw, Dave wrote: > > When I attempt to use static_routes in /etc/rc.conf I get an error message > > indicating an invalid argument. I am using a private netid and the gateway > > is on my internal network. I have a default gateway pointing to my external > > interface. After the system starts and I do a 'route add -net netid > > gateway' it works fine.: > > > > static_routes="route_whatever" > > route_whatever="-net netid gateway" > > How about: > > static_routes="whatever" > route_whatever="netid gateway" If you specify 'netid' in CIDR slash notation (ie 192.168.0.0/24), the -net qualifier isn't needed. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message