From owner-freebsd-current@FreeBSD.ORG Fri Oct 15 19:38:58 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08D3410656C6; Fri, 15 Oct 2010 19:38:58 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id B19B08FC1C; Fri, 15 Oct 2010 19:38:57 +0000 (UTC) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id D42275ACC3; Fri, 15 Oct 2010 21:18:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id D08B15ACB7; Fri, 15 Oct 2010 21:18:04 +0200 (CEST) X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id ABCC15CD54; Fri, 15 Oct 2010 21:18:04 +0200 (CEST) Received: from wep4035.physik.uni-wuerzburg.de ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.5.2HF17) with ESMTP id 2010101521180396-7764 ; Fri, 15 Oct 2010 21:18:03 +0200 Date: Fri, 15 Oct 2010 21:18:02 +0200 From: Alexey Shuvaev To: Mark Murray Message-ID: <20101015191802.GA55182@wep4035.physik.uni-wuerzburg.de> References: MIME-Version: 1.0 In-Reply-To: Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.21 (2010-09-15) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.5.2HF17 | August 31, 2010) at 10/15/2010 09:18:04 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.5.2HF17 | August 31, 2010) at 10/15/2010 09:18:04 PM, Serialize complete at 10/15/2010 09:18:04 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Cc: current@freebsd.org Subject: Re: Setting up IPv6 in /etc/rc.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Oct 2010 19:38:58 -0000 On Fri, Oct 15, 2010 at 07:04:47PM +0100, Mark Murray wrote: > Hi > > IPv6 gurus: what are the CURRENT /etc/rc.conf incantations to do the > following (which works): > > $ ifconfig gif0 create > $ ifconfig gif0 tunnel 192.168.0.2 11.22.33.44 > $ ifconfig gif0 inet6 2001:1111:2222:3333::2 2001:1111:2222:3333::1 prefixlen 128 > $ route -n add -inet6 default 2001:1111:2222:3333::1 > $ ifconfig gif0 up > > ... when my non-working setup in /etc/rc.conf contains > > gif_interfaces="gif0" > gifconfig_gif0="192.168.0.2 11.22.33.44" > gifconfig_gif0_ipv6="2001:1111:2222:3333::2 2001:1111:2222:3333::1 prefixlen 128" ^^^^ ^^^^ I suppose you should prefix it with "inet6" keyword. There are 2 examples in rc.conf (search for "Sample IPv6"). > ipv6_defaultrouter="-inet6 default 2001:1111:2222:3333::1" > > ... which used to work. The bit that fails is the bit where gif0 gets > its tunnel IPv6 addresses. I've tried both gifconfig_gif0_ipv6="..." > and ifconfig_gif0_ipv6="...". The IPv6 endmpoints never make it onto > gif0. > > This used to work, but setting up IPv6 in CURRENT is a moving > target, and I can't find a working example any more. I've looked in > /etc/defaults/rc.conf, but the gifN examples there are all devoid of any > IPv6 examples. > HTH, Alexey.