ipv6_addrs_IF aliases in rc.conf(5)

Michael Grimm trashcan at odo.in-berlin.de
Sat Jul 20 16:14:17 UTC 2013


On 20.07.2013, at 16:46, Hiroki Sato <hrs at FreeBSD.org> wrote:
> Hiroki Sato <hrs at freebsd.org> wrote in <20130718.123323.1730389945845032580.hrs at allbsd.org>:

> hr> Michael Grimm <trashcan at odo.in-berlin.de> wrote
> hr>   in <EB3C4472-02BF-4415-BB2D-B4929063D796 at odo.in-berlin.de>:
> hr>
> hr> tr> On 12.07.2013, at 09:03, Hiroki Sato <hrs at FreeBSD.org> wrote:
> hr> tr>
> hr> tr> > Please let me know if the existing configurations and/or the new
> hr> tr> > formats do not work.
> hr> tr>
> hr> tr> First of all: great work! It is that much easier to deal with aliases, now.
> hr> tr>
> hr> tr> There is only one minor issue, if at all:
> hr> tr>
> hr> tr> rc.conf:
> hr> tr> | ifconfig_em0_ipv6="inet6 dead:beef:1111:2222::1 prefixlen 56"
> hr> tr> | ifconfig_em0_aliases="\
> hr> tr> |         inet6 dead:beef:1111:2222::2-3 prefixlen 56 \
> hr> tr> |         inet6 dead:beef:1111:2222::4 prefixlen 56 \
> hr> tr> |         inet6 dead:beef:1111:2222::5-6/56"
> hr> tr>
> hr> tr> ifconfig:
> hr> tr> |	inet6 dead:beef:1111:2222::1 prefixlen 56
> hr> tr> |	inet6 dead:beef:1111:2222::2 prefixlen 64
> hr> tr> |	inet6 dead:beef:1111:2222::3 prefixlen 64
> hr> tr> |	inet6 dead:beef:1111:2222::4 prefixlen 56
> hr> tr> |	inet6 dead:beef:1111:2222::5 prefixlen 56
> hr> tr> |	inet6 dead:beef:1111:2222::6 prefixlen 56
> hr> tr>
> hr> tr> Any combination of a range definition (2-3) *and* "prefixlen 56"is ignored
> hr> tr> whereas a range definition (5-6) *and* "/56" is interpreted as wanted.
> hr> tr>
> hr> tr> Well, that combination of a range and "prefix" isn't documented, thus I am
> hr> tr> not sure if that's an issue or a feature?
> hr>
> hr>  It seems a bug.  Thank you for your report.  I am investigating it now.
> 
> Can you test the attached patch?  The old version (in stable/9 now)
> does not support "address range spec + options" properly and ignore
> the options part.
> 
> The attached patch accepts options and treats "netmask" for inet and
> "prefixlen" in inet6 in a reasonable way so that the specified
> options do not conflict with the default /NN values.

I can confirm that your patch is working for my examples used before. 

Now, a range definition and "prefixlen 56" is recognized properly:

ifconfig:
|	inet6 dead:beef:1111:2222::2 prefixlen 56 
|	inet6 dead:beef:1111:2222::3 prefixlen 56 
|	inet6 dead:beef:1111:2222::4 prefixlen 56 
|	inet6 dead:beef:1111:2222::5 prefixlen 56 
|	inet6 dead:beef:1111:2222::6 prefixlen 56 

Thanks and with kind regards,
Michael




More information about the freebsd-stable mailing list