From owner-freebsd-net@FreeBSD.ORG Tue Apr 19 18:39:40 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8BCD106564A; Tue, 19 Apr 2011 18:39:40 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (unknown [IPv6:2a01:4f8:131:60a2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 84C788FC0A; Tue, 19 Apr 2011 18:39:40 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (89.112.15.178.pppoe.eltel.net [89.112.15.178]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id 5EAD94AC42; Tue, 19 Apr 2011 22:39:39 +0400 (MSD) Date: Tue, 19 Apr 2011 22:39:38 +0400 From: Lev Serebryakov Organization: FreeBSD X-Priority: 3 (Normal) Message-ID: <888636747.20110419223938@serebryakov.spb.ru> To: Doug Barton In-Reply-To: <4DADCDF0.7000607@FreeBSD.org> References: <884389059.20110419211805@serebryakov.spb.ru> <4DADCDF0.7000607@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: quoted-printable Cc: freebsd-net@freebsd.org, lev@FreeBSD.org Subject: Re: Proper way to setup IPv6 gateway on running node without reboot? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 18:39:41 -0000 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 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