From ggm@mirin.apnic.net  Tue Jun 19 03:34:01 2007
Return-Path: <ggm@mirin.apnic.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 92CFD16A421
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Jun 2007 03:34:01 +0000 (UTC)
	(envelope-from ggm@mirin.apnic.net)
Received: from mirin.apnic.net (mirin.apnic.net [203.119.0.113])
	by mx1.freebsd.org (Postfix) with ESMTP id 2110B13C46C
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Jun 2007 03:34:00 +0000 (UTC)
	(envelope-from ggm@mirin.apnic.net)
Received: from mirin.apnic.net (localhost [127.0.0.1])
	by mirin.apnic.net (8.14.1/8.14.1) with ESMTP id l5J2AB41006950
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 19 Jun 2007 12:10:11 +1000 (EST)
	(envelope-from ggm@mirin.apnic.net)
Received: (from ggm@localhost)
	by mirin.apnic.net (8.14.1/8.14.1/Submit) id l5J2A8Nh006949;
	Tue, 19 Jun 2007 12:10:08 +1000 (EST)
	(envelope-from ggm)
Message-Id: <200706190210.l5J2A8Nh006949@mirin.apnic.net>
Date: Tue, 19 Jun 2007 12:10:08 +1000 (EST)
From: George Michaelson <ggm@mirin.apnic.net>
Reply-To: George Michaelson <ggm@apnic.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: enabling IPv6 post-boot didn't work: required reboot
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         113842
>Category:       kern
>Synopsis:       [ip6] PF_INET6 proto domain state can't be cleared without a reboot
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bz
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 19 03:40:01 GMT 2007
>Closed-Date:    Tue Nov 17 21:04:45 UTC 2009
>Last-Modified:  Tue Nov 17 21:04:45 UTC 2009
>Originator:     George Michaelson
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD mirin.apnic.net 7.0-CURRENT FreeBSD 7.0-CURRENT #5: Mon Jun 11 10:43:34 EST 2007 root@mirin.apnic.net:/usr/obj/usr/src/sys/ULURU i386


	
>Description:
	I had to bring up a stateless autoconfig node, which previous
	was V4 only. It had V6 in the kernel. I wanted to avoid reboot.

	Although I added V6 enabler directives to /etc/rc.conf, running
	the /etc/rc.d/ scripts did not seem to work. rtsol did not work,
	yet across a reboot, I came back with V6. go figure.

	so what IS the sequence which can re-initialize interfaces and
	sysctl kernel state, to bring V6 live?
	
>How-To-Repeat:
	boot V4 only machine. add V6 enablers to rc.conf. try and
	bring it live runtime, without a static V6 assignment.

	
>Fix:

	better documentation of a sequence of commands which DTRT with
	the interfaces, without disrupting existing V4 state.
	
	just because it works across reboot doesn't mean its not broken!
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Jun 19 05:47:43 UTC 2007 
State-Changed-Why:  
Please ask general support questions on the appropriate mailing list, in 
this case, freebsd-questions or freebsd-net.  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113842 
State-Changed-From-To: closed->open 
State-Changed-By: bms 
State-Changed-When: Sun Jun 24 22:36:48 UTC 2007 
State-Changed-Why:  
This is a real issue with the network stack and needs to be 
resolved; reopened at my request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113842 
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: bms 
Responsible-Changed-When: Sun Jun 24 22:37:28 UTC 2007 
Responsible-Changed-Why:  
Real issue. I may get around to this but am currently allocated 
on non FreeBSD stuff. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113842 
State-Changed-From-To: open->analyzed 
State-Changed-By: bz 
State-Changed-When: Sat Jan 31 13:42:49 UTC 2009 
State-Changed-Why:  
The problem has been analyzed a few months back. 
A workaround for what I think the submitter has asked for 
was presented; yet an rc sscript and the kernel has to be fixed. 


Responsible-Changed-From-To: freebsd-net->bz 
Responsible-Changed-By: bz 
Responsible-Changed-When: Sat Jan 31 13:42:49 UTC 2009 
Responsible-Changed-Why:  
I'll take care of this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113842 

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, ggm@apnic.net
Cc:  
Subject: Re: kern/113842: [ip6] PF_INET6 proto domain state can't be cleared
 without a reboot
Date: Sat, 31 Jan 2009 13:42:15 +0000 (UTC)

 Hi,
 
 this is a problem introduced by a change that by default has autoconf
 off unless ipv6 etc. is requested at boot time.
 
 
 The workaround is to
  	ipv6_enable="YES" in /etc/rc.conf
 then
  	sysctl net.inet6.ip6.auto_linklocal=1
  	(actually one should run /etc/rc.d/auto_linklocal but I think
  	that can only disable and not enable it, so there is another bug).
 
 And then comes the part that needs to be fixed in the kernel so this
 is no longer needed:
  	ifconfig <ifname> down; ifconfig <ifname> up
 
 After that you should have the a link-local address and starting
 /etc/rc.d/network_ipv6 start then should also run rtsol if applicable.
 
 -- 
 Bjoern A. Zeeb                      The greatest risk is not taking one.

From: George Michaelson <ggmichaelson@gmail.com>
To: bug-followup@FreeBSD.org, ggm@apnic.net
Cc:  
Subject: Re: kern/113842: [ip6] PF_INET6 proto domain state can't be cleared 
	without a reboot
Date: Sun, 1 Feb 2009 21:57:05 +1000

 If this gets documented in a man page relating to IPv6, or added as
 comments in an rc.d file, I'm good.
 
 (obviously a kernel level fix should eventuate at some point, but my
 bug report did say "..or document" type words, and now I know it can
 be done without reboot, I think if its documented I'm content)
 
 the bug can close if you like, I don't need it left open (others might)
 
 thanks for responses
 
 -George

From: "Bjoern A. Zeeb" <bz@FreeBSD.org>
To: bug-followup@FreeBSD.org, ggm@apnic.net
Cc:  
Subject: Re: kern/113842: [ip6] PF_INET6 proto domain state can't be cleared
  without a reboot
Date: Sun, 1 Feb 2009 16:27:04 +0000 (UTC)

 On Sun, 1 Feb 2009, George Michaelson wrote:
 
 Hi,
 
 > If this gets documented in a man page relating to IPv6, or added as
 > comments in an rc.d file, I'm good.
 
 *ugh* hmm. Any suggestiong for the "right" man page to document this?
 
 
 > (obviously a kernel level fix should eventuate at some point, but my
 > bug report did say "..or document" type words, and now I know it can
 > be done without reboot, I think if its documented I'm content)
 >
 > the bug can close if you like, I don't need it left open (others might)
 
 if you don't mind, I'd rather leave it open to get this fixed soon and
 properly rather than adding some documentation at a semi-random place,
 closing it and forgetting about it again.
 
 /bz
 
 -- 
 Bjoern A. Zeeb                      The greatest risk is not taking one.
State-Changed-From-To: analyzed->closed 
State-Changed-By: bz 
State-Changed-When: Tue Nov 17 21:02:04 UTC 2009 
State-Changed-Why:  
FreeBSD 9-CURRENT now has per interface option to be enabled/disabled 
with ifconfig done by hrs@. They should be merged to stable/8 for 8.1-R. 
Close now as discussed beginning of the year. 
Thanks a lot for the report. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113842 
>Unformatted:
