Re: New IPv6 settings in rc.conf

From: Doug Barton <dougb_at_FreeBSD.org>
Date: Sat, 24 Apr 2010 18:55:16 -0700
On 04/24/10 17:54, Bruce Cran wrote:
> I updated my router to the latest -CURRENT yesterday

Did you run mergemaster after you upgraded? How old/what version of
FreeBSD did you upgrade from?

> and now I'm getting an 
> error on startup from ifconfig saying the the IPv6 addresses I've configured 
> are wrong ("bad value").

Can you please paste the exact error message?

> The settings I've got in rc.conf are:
> # IPv6 setup
> ipv6_prefer="YES"

This is no longer needed.

> ipv6_gateway_enable="YES"
> ipv6_defaultrouter="2001:abcd:abcd:abc::x"
> 
> gif_interfaces="gif0 gif1"
> gifconfig_gif0="a.b.c.d e.f.g.h"
> gifconfig_gif1="a.b.c.d i.j.k.l"
> ifconfig_gif0_ipv6="2001:abcd:abcd:abc::x abcd:abc:abcd:abc::x prefixlen 128"
> ifconfig_gif1_ipv6="2a01:abcd:a:bc::x abcd:abc:x:ab::x prefixlen 128"
> 
> # if_bridge doesn't have a link-local address by default, so add one
> ifconfig_bridge0_ipv6="fe80::2%bridge0 prefixlen 64"

It's likely that you need to add inet6 before fe80 there:
ifconfig_bridge0_ipv6="inet6 fe80::2%bridge0 prefixlen 64"

> ifconfig_bridge0_ipv6_alias0="2001:abcd:abcd:abcd::x"

See the rc.conf man page on this one, this should probably be:
ifconfig_bridge0_alias0="inet6 2001:abcd:abcd:abcd::x prefixlen 64"

> I can manually run ifconfig once the systems running so I guess I've missed 
> out a required setting somewhere?

If the above doesn't fix your problems, what ifconfig command line(s)
work for you?


hth,

Doug

-- 

	... and that's just a little bit of history repeating.
			-- Propellerheads

	Improve the effectiveness of your Internet presence with
	a domain name makeover!    http://SupersetSolutions.com/
Received on Sat Apr 24 2010 - 23:55:18 UTC

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