Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 09 Mar 2007 21:13:14 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        Jason Arnaute <non_secure@yahoo.com>
Cc:        "Bruce A. Mah" <bmah@freebsd.org>, freebsd-net@freebsd.org
Subject:   Re: what is wrong with ipv6_defaultrouter ?
Message-ID:  <45F23E6A.9020205@FreeBSD.org>
In-Reply-To: <888880.69225.qm@web51015.mail.yahoo.com>
References:  <888880.69225.qm@web51015.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jason Arnaute wrote:
> --- "Bruce A. Mah" <bmah@freebsd.org> wrote:
> 
>> If memory serves me right, Jason Arnaute wrote:
>>> (FreeBSD 6.2-RELEASE)
>>>
>>> I have two ipv6 related lines in my /etc/rc.conf:
>>>
>>> ifconfig_em0_alias0="inet6 XXX::2/48"
>>> ipv6_defaultrouter="XXX::1"
>>>
>>> When I boot like this, I do not get a default ipv6
>>> route in my routing table.  'netstat -rn' shows me
>> a
>>> default route for ipv4, but no default route for
>> ipv6.
>>
>> You probably want to replace that first line with:
>>
>> ipv6_ifconfig_em0="XXX::2/48"
>>
>> Also make sure to set ipv6_enable="YES".
> 
> 
> But the ipv6 ifconfig and the ipv6 networking all work
> fine without either of those changes.  I'd prefer not
> to fix anything that isn't broken ...

There is a difference between "what I need to type after the system is
up" and "what I need to add to rc.conf so that the boot scripts
understand what I'm trying to do." Read the rc.conf man page, and
particularly the ipv6_network_interfaces entry.

> Are you suggesting that one or both of those changes
> will cause the ipv6_defaultrouter declaration to
> suddenly begin working ?

You can't have a default route for an interface that isn't up, and you
can't do IPv6 at boot without ipv6_enable, so yes, both are required.

hth,

Doug

-- 

    This .signature sanitized for your protection



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