ipv6_addrs_IF aliases in rc.conf(5)

Hiroki Sato hrs at FreeBSD.org
Sat Jul 20 14:46:56 UTC 2013


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.

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: network.subr.aliases.20130720-1.diff
Type: text/x-patch
Size: 3265 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130720/3c002bfe/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20130720/3c002bfe/attachment.sig>


More information about the freebsd-stable mailing list