ipv6_addrs_IF aliases in rc.conf(5)

Kimmo Paasiala kpaasial at gmail.com
Thu Dec 20 11:09:41 UTC 2012


On Wed, Dec 19, 2012 at 11:47 PM, Kimmo Paasiala <kpaasial at gmail.com> wrote:
> On Wed, Dec 19, 2012 at 3:46 PM, Łukasz Wąsikowski
> <lukasz at wasikowski.net> wrote:
>> W dniu 2012-12-19 07:14, Kimmo Paasiala pisze:
>>
>>>> I wrote a small patch for /etc/network.subr to add support for
>>>> ipv6_addrs_IF aliases in rc.conf(5) to match the already existing
>>>> ipv4_addrs_IF aliases for ipv4 addresses. With this patch the ipv6
>>>> aliases can be written like:
>>
>> [...]
>>
>>> Did anyone try my patch? I thought it would be nice to have the
>>> ipv6_addrs_IF syntax supported to complement the existing
>>> ipv4_addrs_IF alias syntax.
>>
>> Can I use range syntax in it like in ipv4? I mean something like:
>>
>> ipv4_addrs_lagg0="x.x.x.10-30/22"
>>
>> That feature would be very nice to have for ipv6.
>>
>> --
>> best regards,
>> Lukasz Wasikowski
>
> I have to admit I overlooked the possibility to use ranges like that.
> It doesn't look too hard to add that feature as well for ipv6 aliases
> using the existing code for ipv4 aliases. I'll prepare a new patch and
> update the PR when I have it working.
>
> -Kimmo

A question related to this for those who have been doing work on the
rc(8) scripts. Can I assume that /usr/bin is available when
network.subr functions are used? Doing calculations on hexadecimal
numbers is going to be very awkward if I can't use for example bc(1).

-Kimmo


More information about the freebsd-stable mailing list