IPv6 configuration missunderstanding

Hiroki Sato hrs at FreeBSD.org
Thu May 9 19:51:16 UTC 2013


Florent Peterschmitt <florent at peterschmitt.fr> wrote
  in <518BFBF6.4040907 at peterschmitt.fr>:

fl> Le 09/05/2013 21:19, Hiroki Sato a écrit :
fl> > Florent Peterschmitt <florent at peterschmitt.fr> wrote
fl> >   in <518A6D5C.3030804 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20130510/3087d17b/attachment.sig>


More information about the freebsd-net mailing list