From owner-freebsd-current@FreeBSD.ORG Fri Oct 15 18:28:17 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 685091065672 for ; Fri, 15 Oct 2010 18:28:17 +0000 (UTC) (envelope-from freebsd-current@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id E58AD8FC1D for ; Fri, 15 Oct 2010 18:28:16 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P6p0n-0001uy-Il for freebsd-current@freebsd.org; Fri, 15 Oct 2010 20:28:13 +0200 Received: from 207.155.204.151.ptr.us.xo.net ([207.155.204.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2010 20:28:13 +0200 Received: from atkin901 by 207.155.204.151.ptr.us.xo.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 15 Oct 2010 20:28:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-current@freebsd.org From: Mark Atkinson Date: Fri, 15 Oct 2010 11:28:03 -0700 Lines: 53 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207.155.204.151.ptr.us.xo.net User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.9) Gecko/20100920 Thunderbird/3.1.4 In-Reply-To: X-Enigmail-Version: 1.1.2 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 18:28:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10/15/2010 11:04, 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" > 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. I found that my ipv6 tunnel setup needed to be dead last in startup. I could not get it to configure properly via rc.conf and come up. So I just setup the following script to run after the system comes up (using your ip examples): /etc/rc.d/rtadvd stop ifconfig gif0 inet6 2002001:1111:2222:3333::2 2001:1111:2222:3333::1 prefixlen 128 ifconfig gif0 inet6 -ifdisabled route add -inet6 default 2001:1111:2222:3333::1 ifconfig internal inet6 2001:1111:4444:3333::/64 eui64 ifconfig internal inet6 -ifdisabled /etc/rc.d/rtadvd start -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAky4nTMACgkQrDN5kXnx8yYbSwCgl34QIrmZwCVF+em+ZoeJPOi0 S/cAnAzmCVxrsoiubNWEW8QWcR1dRlBN =rM+v -----END PGP SIGNATURE-----