Subject: Re: How to use properly ipv6 autoconf over a router interface?
To: None <tech-net@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: tech-net
Date: 04/30/2006 20:45:54
"Konstantin KABASSANOV" <Konstantin.Kabassanov@lip6.fr> writes:

>> -----Message d'origine-----
>> De : tech-net-owner@NetBSD.org [mailto:tech-net-owner@NetBSD.org] De la
>> part de Rui Paulo
>> Envoyé : dimanche 30 avril 2006 20:25
>> À : tech-net@NetBSD.org
>> Objet : Re: How to use properly ipv6 autoconf over a router interface?
>> 
>> I think a clean router configuration would not involve IPv6
>> autoconfig, but, if you just need to get the address one, here's my
>> suggestion for ifconfig.ath1:
>> 
>>            !sysctl -w net.inet6.ip6.accept_rtadv=1
>>            !rtsol $int
>>            !sysctl -w net.inet6.ip6.accept_rtadv=0
>> 
>> and set ip6mode=router (that's what the machine is doing anyway).
>> 
>
> Well, unfortunately I've fallen in the situation I've described before... No
> default route is added in the kernel with this config... :(

How many seconds are  you sleeping ? You probably need to sleep
dad_count+1 seconds:
sleep `sysctl -n net.inet6.ip6.dad_count`
sleep 1

I don't know if you already mentioned but: do you have rtsold
activated ?

-- 
  Rui Paulo			<rpaulo@{NetBSD{,-PT}.org,fnop.net}>