Re: Setting up IPv6 in /etc/rc.conf

From: Chris Ruiz <yr.retarded_at_gmail.com>
Date: Sun, 17 Oct 2010 13:11:29 -0500
On Sat, Oct 16, 2010 at 3:15 AM, Mark Murray <markm_at_freebsd.org> wrote:
> "Bjoern A. Zeeb" writes:
>> On Fri, 15 Oct 2010, Mark Murray wrote:
>>
>> > Alexey Shuvaev writes:
>> >>> 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").
>> >
>> > Aaaaah!
>> >
>> > It didn't occur to me that I might need TWO inet6's! I'll give that a go when
>> > I play with this again tomorrow.
>>
>> It's just one inet6; put there what you would pass to ifconfig on the
>> command line.  The fact that ifconfig defaults to "inet" is the
>> problem leading to more confusion.
>
> In which case, I'm back to square one. What should work doesn't.
>
> I have the necessary commands in /etc/rc.local to bring up IPv6.
>
>> I think the samples in defaults/rc.conf will be more clear soon.
>
> Cool! Thanks.

You have a few syntax errors in your rc.conf, try these adjustments
and everything "should" work (as it works for me on a recent CURRENT.)

gif_interfaces="gif0"
gifconfig_gif0="192.168.0.2 11.22.33.44"
ifconfig_gif0_ipv6="inet6 2001:1111:2222:3333::2
2001:1111:2222:3333::1 prefixlen 128"
ipv6_defaultrouter="2001:1111:2222:3333::1"


-- Chris

-----------------------------------------
http://twitter.com/chrisattack
http://chrisattack.com
Received on Sun Oct 17 2010 - 16:39:16 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:08 UTC