Solved IPv6 Default Route Not Set

Hey gang -
Code:
ipv6_defaultrouter="2001:470:7:9af::1"

That's in my FreeBSD 10.1's /etc/rc.conf and it isn't being set at all at boot time. I can forcefully add it using the route add command, but I can't get it do the right thing at boot time.

My gut tells me this is a timing thing, but I'm not sure. My IPv6 interface is a gif0 tunnel between myself and HE. It gets created fine at boot up, but I'm wondering if BSD is processing the rc scripts too quickly, and when it tries to add that default route there isn't a valid path to it yet?

I see nothing in the /var/log/messages file that might help diagnose. Any other ideas? Did I format the line incorrectly?

Thanks.
 
Format should be good. But I can remember a similar issue with my IPv6 tunnelbroker. Try this, it worked for me:
Code:
ipv6_defaultrouter="-iface gif0"
 
Format should be good. But I can remember a similar issue with my IPv6 tunnelbroker. Try this, it worked for me:

Doing a simple
Code:
service netif stop gif0 ; service netif start gif0
resulted in the same thing: no IPv6 default route and nothing in the log file.
 
You need to restart routing as well when using manually configured interfaces.

Restarting the routing was something I wasn't testing properly. Thank you. I did that, and everything was reset as expected. I even returned the /etc/rc.conf line back to the actual IPv6 address and that worked as well.

Cool!
 
Back
Top