From owner-freebsd-questions@FreeBSD.ORG Thu Mar 10 01:02:30 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE87916A4CE for ; Thu, 10 Mar 2005 01:02:30 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ABF7243D2D for ; Thu, 10 Mar 2005 01:02:27 +0000 (GMT) (envelope-from m@MHoerich.de) Received: (qmail invoked by alias); 10 Mar 2005 01:02:24 -0000 Received: from pD9E58B6D.dip.t-dialin.net (EHLO localhost) (217.229.139.109) by mail.gmx.net (mp014) with SMTP; 10 Mar 2005 02:02:24 +0100 X-Authenticated: #5114400 Date: Thu, 10 Mar 2005 02:02:21 +0100 From: Mario Hoerich To: Fafa Diliha Romanova Message-ID: <20050310010221.GA8033@Pandora.MHoerich.de> References: <20050309115816.29B164BDAA@ws1-1.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050309115816.29B164BDAA@ws1-1.us4.outblaze.com> User-Agent: Mutt/1.4.2.1i X-Y-GMX-Trusted: 0 cc: questions@freebsd.org Subject: Re: IPv6 setup script ... doesn't work!! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2005 01:02:31 -0000 # Fafa Diliha Romanova: ># ifconfig gif create Try uncommenting this (by removing the '#'). > gifconfig gif0 inet 213.187.181.70 213.121.24.85 Looks like a typo, this is probably just ifconfig. > route add -inet6 default fe80::%gif0 The shell will mangle this. Quote it, like 'fe80::%gif0'. > ifconfig fxp0 inet6 2001:618:400:6ad9:: prefixlen 64 Replace every occurence of fxp0 with your ethernet NIC (i.e. xl0). > sysctl ?w net.inet6.ip6.forwarding=1 ^^ Another typo, this is supposed to be -w. > echo "IPv6 activation complete!" || > { echo "IPv6 activation failed!" 1>&2; exit 1; } > ;; Eh? So if echo on stdout fails, we're moving to stderr? What am I missing here? I'd guess the actual intent was more like /usr/sbin/rtadvd fxp0 if [ $? = "0" ]; then echo "IPv6 activated." else echo "IPv6 activation failed." 1>&2 exit 1 fi > gifconfig gif0 delete > echo "IPv6 deactivation complete!" || > { echo "IPv6 deactivation failed!" 1>&2; exit 1; } > ;; More junk code. > echo "Usage: $0 {start|stop|restart}" echo "Usage: `basename $0` {start|stop|restart}" 1>&2 > Where did I go wrong? You didn't. The script is rotten. Regards, Mario