From owner-freebsd-current Sat May 1 4: 0:39 1999 Delivered-To: freebsd-current@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id AAE1614FE3 for ; Sat, 1 May 1999 04:00:35 -0700 (PDT) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id NAA35095; Sat, 1 May 1999 13:00:31 +0200 (CEST) (envelope-from des) To: Lars Fredriksen Cc: current@FreeBSD.ORG Subject: Re: default route not set up?? References: <372A1AE6.4E2738D4@odin-corporation.com> From: Dag-Erling Smorgrav Date: 01 May 1999 13:00:30 +0200 In-Reply-To: Lars Fredriksen's message of "Fri, 30 Apr 1999 16:04:39 -0500" Message-ID: Lines: 27 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Lars Fredriksen writes: > If you set "defaultrouter" in /etc/rc.conf to an ip address, > I expected that rc.network would > do a route add default ..., but instead I find that rc.network doesn't > do anything with the defaultrouter variable except to pass it on to the > route_default variable, which doesn't seem to be used at all. > > What am I missing here??? # Configure routing if [ "x$defaultrouter" != "xNO" ] ; then static_routes="default ${static_routes}" # look here... route_default="default ${defaultrouter}" fi # Set up any static routes. This should be done before router discovery. if [ "x${static_routes}" != "x" ]; then for i in ${static_routes}; do # ...and here eval route_args=\$route_${i} route add ${route_args} done fi DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message