From owner-freebsd-net@FreeBSD.ORG Tue Apr 19 18:01:44 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id EB2181065672; Tue, 19 Apr 2011 18:01:44 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from [127.0.0.1] (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id B4C8914E87F; Tue, 19 Apr 2011 18:01:22 +0000 (UTC) Message-ID: <4DADCDF0.7000607@FreeBSD.org> Date: Tue, 19 Apr 2011 11:01:20 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: lev@FreeBSD.org References: <884389059.20110419211805@serebryakov.spb.ru> In-Reply-To: <884389059.20110419211805@serebryakov.spb.ru> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@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 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:01:45 -0000 On 4/19/2011 10:18 AM, Lev Serebryakov wrote: > Hello, Freebsd-net. > > > 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. Meanwhile, you need to tell us what version of FreeBSD you're using, as IPv6 configuration is different in all 3 supported branches atm. > I've added to /etc/rc.conf: > > ipv6_enable="YES" > ipv6_ifconfig_em0="2001:470:hhhh:1::1 prefixlen 64" > ipv6_ifconfig_wlan0="2001:470:hhhh:2::1 prefixlen 64" I hope that the hhhh here is a method of obfuscating the real addresses for this message? > ipv6_defaultrouter="2001:470:xxxx:xxxx::2" # uplink > rtadvd_enable="YES" > rtadvd_interfaces="em0 wlan0" > ipv6_gateway_enable="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 ifdisabled options. Check the ifconfig man page for what you need to twiddle. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/