What startup script is supposed to handle ipv6_defaultrouter=...?

2009-02-26 Thread Trond Endrestøl
On a system running 7.1-STABLE as of early February, cvsup'd with 
tag=RELENG_7 just prior to recompiling the system, setting 
ipv6_defaultrouter=... in /etc/rc.conf seems to have no effect.
I'm forced to set the IPv6 gateway using commands outside the regular 
startup scripts.

The command

  grep ipv6_defaultrouter /etc/rc.d/*

doesn't give anything useful, either.

I guess /etc/rc.d/network_ipv6 is missing the required code.
Here's the revision string from my /etc/rc.d/network_ipv6:

# $FreeBSD: src/etc/rc.d/network_ipv6,v 1.37 2004/10/07 13:55:26 mtm Exp $

Is this the correct revision number for tag=RELENG_7?

-- 
--
Trond Endrestøl  | trond.endres...@fagskolen.gjovik.no
ACM, NAS, NUUG, SAGE, USENIX |  FreeBSD 6.2-STABLE  Pine 4.64___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: What startup script is supposed to handle ipv6_defaultrouter=...?

2009-02-26 Thread Bjoern A. Zeeb

On Thu, 26 Feb 2009, Trond Endrestøl wrote:


On a system running 7.1-STABLE as of early February, cvsup'd with
tag=RELENG_7 just prior to recompiling the system, setting
ipv6_defaultrouter=... in /etc/rc.conf seems to have no effect.
I'm forced to set the IPv6 gateway using commands outside the regular
startup scripts.

The command

 grep ipv6_defaultrouter /etc/rc.d/*

doesn't give anything useful, either.

I guess /etc/rc.d/network_ipv6 is missing the required code.


I guess it's in /etc/network.subr


Did you se ipv6_enable=YES in rc.conf as well?



/bz


--
Bjoern A. Zeeb  The greatest risk is not taking one.___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: What startup script is supposed to handle ipv6_defaultrouter=...?

2009-02-26 Thread Trond Endrestøl
On Thu, 26 Feb 2009 09:42+0100, Trond Endrestøl wrote:

 On a system running 7.1-STABLE as of early February, cvsup'd with 
 tag=RELENG_7 just prior to recompiling the system, setting 
 ipv6_defaultrouter=... in /etc/rc.conf seems to have no effect.
 I'm forced to set the IPv6 gateway using commands outside the regular 
 startup scripts.

For the record, here are the IPv6 related variables found in this
particular system's /etc/rc.conf file:

ipv6_enable=YES
ipv6_defaultrouter=2001:700::::1
ipv6_ifconfig_em0=2001:700::::24 prefixlen 64

If I leave out the static address assignment on em0 and the static 
router address, the system gets both an autoconfigurated IPv6 address 
as well as receiving the router's link local IPv6 address and the 
system will use that LL address as the default router.

I'm merely interested in giving em0 a static IPv6 address, and if 
possible leave everything else to be determined by the router's 
advertisement.

Do I need to fiddle with one or more sysctl variables?

-- 
--
Trond Endrestøl  | trond.endres...@fagskolen.gjovik.no
ACM, NAS, NUUG, SAGE, USENIX |  FreeBSD 6.2-STABLE  Pine 4.64___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: What startup script is supposed to handle ipv6_defaultrouter=...?

2009-02-26 Thread Trond Endrestøl
Sorry about the noise.

Maybe I wasn't too patient, but I will swear that netstat -rnf inet6 
showed no default route even when it was supposed to. And yes, I did 
reboot the system to verify my settings.

Again, my bad.

-- 
--
Trond Endrestøl  | trond.endres...@fagskolen.gjovik.no
ACM, NAS, NUUG, SAGE, USENIX |  FreeBSD 6.2-STABLE  Pine 4.64___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org

Re: What startup script is supposed to handle ipv6_defaultrouter=...?

2009-02-26 Thread Wolfgang Zenker
Hi,

* Trond Endrestøl trond.endres...@fagskolen.gjovik.no [090226 13:19]:
 Sorry about the noise.

 Maybe I wasn't too patient, but I will swear that netstat -rnf inet6 
 showed no default route even when it was supposed to. And yes, I did 
 reboot the system to verify my settings.

 Again, my bad.

I have the problem sometimes that the system tries to get IPv6 router
advertisments before the interface is up. In this case it doesn't retry,
at least not within the time frame I was patient enough to wait.
In this case I usually call rtsol by hand to get the parameters.

Wolfgang
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org