Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2011 22:39:38 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-net@freebsd.org, lev@FreeBSD.org
Subject:   Re: Proper way to setup IPv6 gateway on running node without reboot?
Message-ID:  <888636747.20110419223938@serebryakov.spb.ru>
In-Reply-To: <4DADCDF0.7000607@FreeBSD.org>
References:  <884389059.20110419211805@serebryakov.spb.ru> <4DADCDF0.7000607@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello, Doug.
You wrote 19 =E0=EF=F0=E5=EB=FF 2011 =E3., 22:01:20:

>>    I'm looking for way to setup IPv6 router config on IPv4-configured
>> node without reboot.
> Your best bet is actually to reboot. There are a lot of moving parts,
> and it's difficult to catch them all, especially with a gateway setup.
  Does it mean, that, someone'll need to reboot for
renumbering or adding new net segment (for example, I want to add
one more WiFi SSID on this router in future, for public access)? I
don't like this idea.

> Meanwhile, you need to tell us what version of FreeBSD you're using, as
> IPv6 configuration is different in all 3 supported branches atm.
  8.2-STABLE

>>    I've added to /etc/rc.conf:
>>
>> ipv6_enable=3D"YES"
>> ipv6_ifconfig_em0=3D"2001:470:hhhh:1::1 prefixlen 64"
>> ipv6_ifconfig_wlan0=3D"2001:470:hhhh:2::1 prefixlen 64"
> I hope that the hhhh here is a method of obfuscating the real addresses
> for this message?
  Yes, of course. It is fragments of routable /48 prefix, allocated to me
by Hurricane Electric.

>> ipv6_defaultrouter=3D"2001:470:xxxx:xxxx::2" # uplink
>> rtadvd_enable=3D"YES"
>> rtadvd_interfaces=3D"em0 wlan0"
>> ipv6_gateway_enable=3D"YES"
>>
>>   and run
>>
>> /etc/rc.d/network_ipv6 start
>> /etc/rc.d/rtadvd start
>>   Interfaces em0 and wlan0 now have static addresses, but not
>> link-local automatic ones, and it seems, that rtadvd doesn't announce
>> anything.

> Check the ifconfig output. You're looking for the auto link-local and=20
> ifdisabled options. Check the ifconfig man page for what you need to=20
> twiddle.
  ifconfig shows only one "inet6" address for each (manually
configured), and these nd6 flags:

  nd6 options=3D3<PERFORMNUD,ACCEPT_RTADV>

But

  sysctl net.inet6.ip6.accept_rtadv: 0
  sysctl net.inet6.ip6.auto_linklocal: 1

And

gateway# ifconfig em0 -accept_rtadv
ifconfig: ioctl(SIOCGIFINFO_IN6): Invalid argument
gateway# ifconfig wlan0 -accept_rtadv
ifconfig: ioctl(SIOCGIFINFO_IN6): Invalid argument

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




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