From owner-freebsd-net@FreeBSD.ORG Fri Jun 22 08:02:12 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5858616A400 for ; Fri, 22 Jun 2007 08:02:12 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (mx1.ethionet.et [213.55.64.53]) by mx1.freebsd.org (Postfix) with ESMTP id 9C0A813C43E for ; Fri, 22 Jun 2007 08:02:11 +0000 (UTC) (envelope-from mtm@FreeBSD.Org) Received: from mx1.ethionet.et (localhost [127.0.0.1]) by localhost.ethionet.et (Postfix) with ESMTP id 029EE52A1; Fri, 22 Jun 2007 10:58:06 +0300 (EAT) Received: from rogue.navcom.lan (unknown [213.55.67.209])by mx1.ethionet.et (Postfix) with SMTP id B1306529A; Fri, 22 Jun 2007 10:57:57 +0300 (EAT) Received: by rogue.navcom.lan (Postfix, from userid 1001)id 1F4964C22; Fri, 22 Jun 2007 04:14:52 +0300 (EAT) Date: Fri, 22 Jun 2007 04:14:51 +0300 From: Mike Makonnen To: George Michaelson Message-ID: <20070622011451.GA3170@rogue.navcom.lan> References: <20070620094806.3a95ec40@garlique.algebras.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070620094806.3a95ec40@garlique.algebras.org> User-Agent: Mutt/1.4.2.2i X-Operating-System: FreeBSD/7.0-CURRENT (i386) X-imss-version: 2.46 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:3 C:2 M:2 S:3 R:2 (0.5000 0.5000) Cc: freebsd-net@freebsd.org Subject: Re: how do you bring IPv6 live 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: Fri, 22 Jun 2007 08:02:12 -0000 On Wed, Jun 20, 2007 at 09:48:06AM +1000, George Michaelson wrote: > > on a 6-STABLE host, I added: > > ipv6_enable="YES" > ipv6_network_interfaces="bge1" > > to rc.conf, and ran /etc/rc.d/network_ipv6 > > this did not bring IPv6 live. rtsol reported problems with get_llflag() > calls. However across reboot, the system came up with IPv6 fine. > > Can somebody explain why this won't work if run after the init sequence > has run to completion? What is the sequence of commands that when run > on an active FreeBSD system causes it to successfully bind to IPv6? IPv6 configuration is still a work in progress. Currently, you can't enable and auto-configure IPv6 *after* the initial boot. The reason for this is that the IPv6 configuration subroutines require all IPv6 interfaces to have a link-local address first. However, the rc.d/auto_linklocal script is executed before all the networking stuff and if IPv6 is not enabled it sets a sysctl(8) variable to prevent the IPv6 subsystem in the kernel from assigning link-local addresses. If you don't want to reboot, then you have to assign the link-local addresses yourself with ifconfig(8) and then run rc.d/network_ipv6 (should work in theory, haven't tried it). Cheers. -- Mike Makonnen | GPG-KEY: http://people.freebsd.org/~mtm/mtm.asc mmakonnen @ gmail.com | AC7B 5672 2D11 F4D0 EBF8 5279 5359 2B82 7CD4 1F55 mtm @ FreeBSD.Org | FreeBSD - http://www.freebsd.org