Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 May 2013 04:49:31 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        florent@peterschmitt.fr
Cc:        freebsd-net@FreeBSD.org
Subject:   Re: IPv6 configuration missunderstanding
Message-ID:  <20130510.044931.944156092944449444.hrs@allbsd.org>
In-Reply-To: <518BFBF6.4040907@peterschmitt.fr>
References:  <518A6D5C.3030804@peterschmitt.fr> <20130510.041934.19893072298744952.hrs@allbsd.org> <518BFBF6.4040907@peterschmitt.fr>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Florent Peterschmitt <florent@peterschmitt.fr> wrote
  in <518BFBF6.4040907@peterschmitt.fr>:

fl> Le 09/05/2013 21:19, Hiroki Sato a écrit :
fl> > Florent Peterschmitt <florent@peterschmitt.fr> wrote
fl> >   in <518A6D5C.3030804@peterschmitt.fr>:
fl> > 
fl> > fl> Hi,
fl> > fl>
fl> > fl> I want to configure IPv6 in FreeBSD 9.1-RELEASE like this :
fl> > fl>
fl> > fl> ipv6_enable=yes
fl> > fl> ipv6_activate_all_interfaces=yes
fl> > fl> ifconfig_em0_ipv6="inet6 2001:41D0:8:B81f:: prefixlen 64"
fl> > fl> -interface em0"
fl> > fl> ipv6_defaultrouter="2001:41D0:8:B8ff:ff:ff:ff:ff"
fl> > 
fl> >  Why the default router is not in 2001:41d0:8:b81f::/64?
fl> > 
fl> > fl> But at boot I have :
fl> > fl>
fl> > fl> default    fe80::264:40ff:fe3a:fac0%em0  UG          em0
fl> > 
fl> >  I guess this is provided by the router via Router Advertisement
fl> >  messages.
fl> > 
fl> > fl> And if ipv6_enable=yes is not here (although it's depreciated), no IPv6
fl> > fl> at all.
fl> > 
fl> >  Please remove ipv6_enable=yes and ipv6_activate_all_interfaces=yes
fl> >  unless you understand you really need them.
fl> > 
fl> >  I think only the following line is sufficient for your environment:
fl> > 
fl> >  ifconfig_em0_ipv6="inet6 2001:41d0:8:b81f::1 prefixlen 64 accept_rtadv"
fl> > 
fl> > -- Hiroki
fl> > 
fl> I found how to configure it:
fl> 
fl> ip6addrctl_policy="ipv6_prefer"
fl> ipv6_activate_all_interfaces=yes
fl> ifconfig_em0_ipv6="inet6 2001:41d0:8:b81f::1 prefixlen 64"
fl> ipv6_defaultrouter="2001:41d0:8:b8ff:ff:ff:ff:ff"
fl> 
fl> Router advertisement is disabled at OVH and the gateway is the given
fl> one. Well, everything is good now ;)

 So, why do you need ipv6_activate_all_interfaces=yes?

 And, using an address on the different subnet as the default router
 is wrong even if it looks working.

-- Hiroki

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlGL/csACgkQTyzT2CeTzy2f1ACgjTq/5kyZEjYoRs4zY+EyJw44
IN4AoIiNQavADI1f/vamz+HpHaYO9Oti
=4fdw
-----END PGP SIGNATURE-----

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