From owner-freebsd-net@FreeBSD.ORG Fri Jun 22 08:45:25 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 052CA16A469 for ; Fri, 22 Jun 2007 08:45:25 +0000 (UTC) (envelope-from ghozzy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id D295213C44B for ; Fri, 22 Jun 2007 08:45:24 +0000 (UTC) (envelope-from ghozzy@gmail.com) Received: by wa-out-1112.google.com with SMTP id j37so664235waf for ; Fri, 22 Jun 2007 01:45:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=q5aSguu3IvZkzqw/Sl165frVkvMhW4P2trk5MNvXgUTxDDAspBMmTDjPL9dxP+ratbFJauAPOnr557dYpsawlo6SSSQrnvNRlM0X/3FGW1KzQzmpicRT7zjWEWXQ/Mb1vbRRzAaooCh6xcnYxVbualeHt7NHQMqLyUz4y49++1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lt3mGdrXCsYnrOByykH0pRbimFAoyfKBp1YgDFIBkL0csbA4Qozc09c/q+cQcw0EfuLkif9vm7AjDC9muoVYZCVNcXWd3evhMHn1r8L3RavX445AzCQkg1drz7QN1YtGDTUMIGIsS5EMPoMttdQ8OLUL2dQoGL4Lb9+NMZzV00g= Received: by 10.115.59.4 with SMTP id m4mr2727379wak.1182500390293; Fri, 22 Jun 2007 01:19:50 -0700 (PDT) Received: by 10.114.158.19 with HTTP; Fri, 22 Jun 2007 01:19:50 -0700 (PDT) Message-ID: Date: Fri, 22 Jun 2007 12:19:50 +0400 From: ghozzy To: "George Michaelson" In-Reply-To: <20070622011451.GA3170@rogue.navcom.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070620094806.3a95ec40@garlique.algebras.org> <20070622011451.GA3170@rogue.navcom.lan> 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:45:25 -0000 On 6/22/07, Mike Makonnen wrote: > 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). I've found a way: # sysctl net.inet6.ip6.auto_linklocal=1 # ifconfig em0 down up will assign link-local address to interface. after all required interfaces have link-local addresses, run /etc/rc.d/network_ipv6 start and all will be set ! :) -- ghozzy