Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Dec 2012 17:29:42 +0200
From:      Kimmo Paasiala <kpaasial@gmail.com>
To:        =?UTF-8?Q?=C5=81ukasz_W=C4=85sikowski?= <lukasz@wasikowski.net>
Cc:        freebsd-current@freebsd.org, freebsd-stable@freebsd.org
Subject:   Re: ipv6_addrs_IF aliases in rc.conf(5)
Message-ID:  <CA%2B7WWSfX%2BFEkdjKj9K%2BAwpEFeMubSXjhcJvgZ7vugwTC_TKQtA@mail.gmail.com>
In-Reply-To: <50D5C2F4.1070104@wasikowski.net>
References:  <CA%2B7WWSftYL7zjdXmSbapXHJvSAMJrKY2Un6yt4L=RkOu1eq8mw@mail.gmail.com> <CA%2B7WWSe8Qx17ZMjdugSJQKEsqXcJ0Ds1hHUZi-3mMw2KN971RA@mail.gmail.com> <50D1C553.9060100@wasikowski.net> <CA%2B7WWSewg%2BQqcn1L508tAiBY1zLQfne6AC6w7oAco3y=efcX9w@mail.gmail.com> <CA%2B7WWSeibFGNSwtjUeK-U6irj6axGftAHJC2eYU3tQoeM0JRpA@mail.gmail.com> <20121220132750.GB99616@stack.nl> <CA%2B7WWSdqjkZq1y0dyxV9LiycNA0V%2BCyEKt9x0d%2BWJaaWC4SXSg@mail.gmail.com> <CA%2B7WWSc-VwdmYBEtZwO03x-p2o7-eUr9bWrhMhjBCUSah_0v_A@mail.gmail.com> <50D4F2E4.7020600@wasikowski.net> <CA%2B7WWSc9sR74RT=oMT8uSBmNYrK-80t7Y8KKZx9JxuVE4drXBA@mail.gmail.com> <CA%2B7WWSdM=45i5knYHUa_Nq=2dta4ek8Q%2Bp3g_Bf697d7_i__QA@mail.gmail.com> <CA%2B7WWSc9ORJQnvaVA0QVnwf4i=wEJ-%2BcYiOqQK3wDUDzL=TGTA@mail.gmail.com> <50D5C2F4.1070104@wasikowski.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Dec 22, 2012 at 4:25 PM, =C5=81ukasz W=C4=85sikowski
<lukasz@wasikowski.net> wrote:
> W dniu 2012-12-22 04:41, Kimmo Paasiala pisze:
>
>>>> It looks like the reason for the difference to ipv4_addrs_IF is that
>>>> the "alias" parameter for ifconfig(8) operates differently for IPv6
>>>> addresses, the first address of an interface can't be added with
>>>> "alias", for IPv4 it does not care. I'll have to dig deeper but that's
>>>> what the problem seems to be.
>>>>
>>>> -Kimmo
>>>
>>> The 'alias' parameter of ifconfig(8) is not the problem on the first
>>> ipv6 address, I have verified that. However, there's probably
>>> something in network.subr or /etc/rc.d/netif that I have overlooked
>>> and causes my code to be skipped if there's no ifconfig_IF_ipv6
>>> variable defined in rc.conf(5).
>>>
>>> -Kimmo
>>
>> Yeah, this is problem in network.subr. An interface is not recognized
>> as IPv6 capable if the interface is not in "ipv6_network_interfaces"
>> and there's no "ifconfig_IF_ipv6" in rc.conf(5), bummer. For IPv4 it
>> "just works" because the interface is always assumed to be IPv4
>> capable.
>
> Ok, I used ifconfig_em0_ipv6=3D"up" and it worked. So it looks like this:
>
> ipv6_activate_all_interfaces=3D"NO"
> ipv6_network_interfaces=3D"em0"
> ifconfig_em0_ipv6=3D"up"
> ipv6_addrs_em0=3D"2001:6a0:1cb::1-ff/64"
> ipv6_defaultrouter=3D"2001:6a0:1cb::ffff"
>
> Good job, thank you! :)
>
> --
> best regards,
> Lukasz Wasikowski

I'm looking into fixing the issue so you could just have the
ipv6_addrs_em0 line in rc.conf. However I don't want to flood the PR
and this mailing list with different versions of the patch. I want to
get it right next time. Stay tuned.

-Kimmo



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B7WWSfX%2BFEkdjKj9K%2BAwpEFeMubSXjhcJvgZ7vugwTC_TKQtA>