From owner-freebsd-current@FreeBSD.ORG Mon Aug 3 20:05:08 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79BFD10657AB; Mon, 3 Aug 2009 20:05:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mail.cksoft.de (mail.cksoft.de [195.88.108.3]) by mx1.freebsd.org (Postfix) with ESMTP id 32D098FC19; Mon, 3 Aug 2009 20:05:08 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from localhost (amavis.fra.cksoft.de [192.168.74.71]) by mail.cksoft.de (Postfix) with ESMTP id 8606241C4E6; Mon, 3 Aug 2009 22:05:07 +0200 (CEST) X-Virus-Scanned: amavisd-new at cksoft.de Received: from mail.cksoft.de ([195.88.108.3]) by localhost (amavis.fra.cksoft.de [192.168.74.71]) (amavisd-new, port 10024) with ESMTP id LYGDMNzXhOQv; Mon, 3 Aug 2009 22:05:05 +0200 (CEST) Received: by mail.cksoft.de (Postfix, from userid 66) id E279041C6FC; Mon, 3 Aug 2009 22:05:05 +0200 (CEST) Received: from maildrop.int.zabbadoz.net (maildrop.int.zabbadoz.net [10.111.66.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.int.zabbadoz.net (Postfix) with ESMTP id BBF1A4448E6; Mon, 3 Aug 2009 20:04:30 +0000 (UTC) Date: Mon, 3 Aug 2009 20:04:30 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@maildrop.int.zabbadoz.net To: FreeBSD Current In-Reply-To: <20090803190934.GK1292@hoeg.nl> Message-ID: <20090803195455.I93661@maildrop.int.zabbadoz.net> References: <20090803174617.GJ1292@hoeg.nl> <20090803190934.GK1292@hoeg.nl> X-OpenPGP-Key: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Qing Li Subject: Re: Problem with latest HEAD and IPv6: in6_ifinit: insertion failed X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2009 20:05:09 -0000 On Mon, 3 Aug 2009, Ed Schouten wrote: Hi, > * Ed Schouten wrote: >> I just upgraded from 26/07 to today's HEAD and during boot I get the >> following messages while starting jails with IPv6 addresses: >> >> in6_ifinit: insertion failed >> >> It won't create the IPv6 addresses, so I can't SSH to my jails using >> IPv6. > > I've discussed the matter with bz@ on IRC and it seems to be an > ifconfig/IPv6/INET6 problem. bz@ knows the details. ;-) Run on console after boot, so if a char is missing - sorry: here's the output: ------------------------------------------------------------------------ dut# sh test.sh fxp0: flags=8802 metric 0 mtu 1500 ifconfig: ioctl (SIOCAIFADDR): File exists 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R 2001:db8::1 2001:db8::1 UH fxp0 fxp0: flags=8843 metric 0 mtu 1500 ------------------------------------------------------------------------ to this script: ------------------------------------------------------------------------ #!/bin/sh iface=fxp0 ifconfig -a inet6 | grep 2001: ndp -a | grep 2001: netstat -rn -f inet6 | grep 2001: ifconfig ${iface} | head -1 ifconfig ${iface} inet6 2001:db8::1/128 alias ifconfig ${iface} inet6 | grep 2001: ndp -a | grep 2001: netstat -rn -f inet6 | grep 2001: ifconfig ${iface} | head -1 ------------------------------------------------------------------------ Note: 1) the interface is UP at the end 2) the address didn't make it to the interface address list but I do have a permanent ndp and a FIB entry for it I then changed the script to s,fxp0,em1,g s,::1,::2,g and re-run: ------------------------------------------------------------------------ dut# sh test.sh 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R 2001:db8::1 2001:db8::1 UH fxp0 em1: flags=8802 metric 0 mtu 1500 ifconfig: ioctl (SIOCAIFADDR): File exists 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R 2001:db8::2 0:e0:81:81:13:9d em1 permanent R 2001:db8::1 2001:db8::1 UH fxp0 2001:db8::2 2001:db8::2 UH em1 em1: flags=8843 metric 0 mtu 1500 ------------------------------------------------------------------------ and a third time with ix0 and as I have test it there before I UPed the interface before to see if it makes a difference, which it didn't: ------------------------------------------------------------------------ dut# ifconfig ix0 | head -1 ix0: flags=8802 metric 0 mtu 1500 dut# ifconfig ix0 up dut# ifconfig ix0 | head -1 ix0: flags=8843 metric 0 mtu 1500 dut# sh test.sh 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R 2001:db8::2 0:e0:81:81:13:9d em1 permanent R 2001:db8::1 2001:db8::1 UH fxp0 2001:db8::2 2001:db8::2 UH em1 ix0: flags=8843 metric 0 mtu 1500 ifconfig: ioctl (SIOCAIFADDR): File exists 2001:db8::1 0:e0:81:81:13:ad fxp0 permanent R 2001:db8::2 0:e0:81:81:13:9d em1 permanent R 2001:db8::3 0:1b:21:24:ce:df ix0 permanent R 2001:db8::1 2001:db8::1 UH fxp0 2001:db8::2 2001:db8::2 UH em1 2001:db8::3 2001:db8::3 UH ix0 ix0: flags=8843 metric 0 mtu 1500 ------------------------------------------------------------------------ Strangely enough this is all Intel interfaces but Ed had seen in on bge0 as well. I hadn't seen this on lo0 at any time before. /bz -- Bjoern A. Zeeb The greatest risk is not taking one.