Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Oct 2010 21:18:02 +0200
From:      Alexey Shuvaev <shuvaev@physik.uni-wuerzburg.de>
To:        Mark Murray <markm@FreeBSD.org>
Cc:        current@freebsd.org
Subject:   Re: Setting up IPv6 in /etc/rc.conf
Message-ID:  <20101015191802.GA55182@wep4035.physik.uni-wuerzburg.de>
In-Reply-To: <E1P6oe7-0000lL-JV@groundzero.grondar.org>
References:  <E1P6oe7-0000lL-JV@groundzero.grondar.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101015191802.GA55182>