Problem with latest HEAD and IPv6: in6_ifinit: insertion failed
Bjoern A. Zeeb
bzeeb-lists at lists.zabbadoz.net
Mon Aug 3 20:05:09 UTC 2009
On Mon, 3 Aug 2009, Ed Schouten wrote:
Hi,
> * Ed Schouten <ed at 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.
More information about the freebsd-current
mailing list