From nobody@FreeBSD.org  Mon Apr  9 00:10:20 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CAFAB106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Apr 2012 00:10:20 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id B700C8FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  9 Apr 2012 00:10:20 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q390AK45058251
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 9 Apr 2012 00:10:20 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q390AKbC058250;
	Mon, 9 Apr 2012 00:10:20 GMT
	(envelope-from nobody)
Message-Id: <201204090010.q390AKbC058250@red.freebsd.org>
Date: Mon, 9 Apr 2012 00:10:20 GMT
From: Yoshikazu GOTO <goto@on-link.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: We do not need the "ifdisabled" flag on gif Interface.
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         166770
>Category:       conf
>Synopsis:       We do not need the "ifdisabled" flag on gif Interface.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    hrs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 09 00:20:15 UTC 2012
>Closed-Date:    Mon Apr 09 01:37:56 UTC 2012
>Last-Modified:  Mon Apr 09 01:37:56 UTC 2012
>Originator:     Yoshikazu GOTO
>Release:        9.0-STABLE
>Organization:
>Environment:
FreeBSD **** 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Apr  9 02:12:04 JST 2012     root@****:/usr/obj/usr/src/sys/KERNEL  i386
>Description:
I wrote the /etc/rc.conf file for IPv6 on 9-STABLE machine, as following:

----
ipv6_defaultrouter="-interface gif0"
ifconfig_em0="inet <IPv4 address>  netmask <Netmask>"
ifconfig_em0_ipv6="inet6 <IPv6 address> prefixlen 64"
gif_interfaces="gif0"
gifconfig_gif0="<IPv4 address> <Destination IPv4 address>"
----

but I cannot send any IPv6 packets.

>How-To-Repeat:
gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280
        tunnel inet **** --> ****
        inet6 fe80::****%gif0 prefixlen 64 tentative scopeid 0x4
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        options=1<ACCEPT_REV_ETHIP_VER>
$ ping6 www.kame.net
PING6(56=40+8+8 bytes) **** --> 2001:200:dff:fff1:216:3eff:feb1:
44d7
ping6: sendmsg: Network is down
ping6: wrote orange.kame.net 16 chars, ret=-1
ping6: sendmsg: Network is down
ping6: wrote orange.kame.net 16 chars, ret=-1
^C
--- orange.kame.net ping6 statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss

>Fix:
So, I run a command "ifconfig gif0 inet6 -ifdisabled", I can send the IPv6 packets.

Please add this command line to "gif_up()" function in /etc/network.subr file.


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hrs 
State-Changed-When: Mon Apr 9 01:35:59 UTC 2012 
State-Changed-Why:  
Read rc.conf(5) and release notes for 9.0R carefully. 
For your case, there are the following options: 

a) Use ipv6_activate_all_interfaces="YES" 

or 

b) 
cloned_interfaces="gif0" 
ifconfig_gif0="tunnel inet <srcinetaddr> <destinetaddr>" 
ifconfig_gif0_ipv6="inet6 auto_linklocal" 

Note that $gif_interfaces and $gifconfig_* are deprecated. 


Responsible-Changed-From-To: freebsd-bugs->hrs 
Responsible-Changed-By: hrs 
Responsible-Changed-When: Mon Apr 9 01:35:59 UTC 2012 
Responsible-Changed-Why:  
I'll take this. 

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