Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2009 20:04:30 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        FreeBSD Current <current@freebsd.org>
Cc:        Qing Li <qingli@freebsd.org>
Subject:   Re: Problem with latest HEAD and IPv6: in6_ifinit: insertion failed
Message-ID:  <20090803195455.I93661@maildrop.int.zabbadoz.net>
In-Reply-To: <20090803190934.GK1292@hoeg.nl>
References:  <20090803174617.GJ1292@hoeg.nl> <20090803190934.GK1292@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 3 Aug 2009, Ed Schouten wrote:

Hi,

> * Ed Schouten <ed@80386.nl> 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<BROADCAST,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<BROADCAST,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
dut# ifconfig ix0 up
dut# ifconfig ix0 | head -1
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090803195455.I93661>