Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2013 22:18:57 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        feld@FreeBSD.org
Cc:        freebsd-stable@FreeBSD.org, rkoberman@gmail.com, lukasz@wasikowski.net, dewayne.geraghty@heuristicsystems.com.au
Subject:   Re: ipv6_addrs_IF aliases in rc.conf(5)
Message-ID:  <20130717.221857.228051450632054039.hrs@allbsd.org>
In-Reply-To: <1374062120.4532.140661256673649.36ED5B44@webmail.messagingengine.com>
References:  <14677223DB6D4CD48E880520725B3552@white> <20130717.183628.1254490649724740016.hrs@allbsd.org> <1374062120.4532.140661256673649.36ED5B44@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Wed_Jul_17_22_18_57_2013_471)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Mark Felder <feld@freebsd.org> wrote
  in <1374062120.4532.140661256673649.36ED5B44@webmail.messagingengine.com>:

fe> On Wed, Jul 17, 2013, at 4:36, Hiroki Sato wrote:
fe> >
fe> >  The recommended way is ifconfig_IF_aliasN or ifconfig_IF_aliases.
fe> >  ipv4_addr_IF will not be removed in the near future, but please use
fe> >  ifconfig_IF_alias{N,es} for newly-configured systems.  Backward
fe> >  compatibility for not breaking the existing configurations will be
fe> >  maintained as much as possible (even on the upcoming 10.0R and
fe> >  later).
fe> >
fe>
fe> Almost everyone is familiar with ifconfig_IF_aliasN, but can you provide
fe> example syntax for ifconfig_IF_aliases ? I've never seen that before and
fe> can't find it documented.

 I committed some descriptions about it to rc.conf(5) at the same
 time.  It is basically the same as ifconfig_IF_aliasN, but can have
 multiple address specification.  Both of ifconfig_IF_alias{N,es} now
 supports range specification, so there is no difference in the
 functionality.  The following two examples give the same result:

   ifconfig_ed0_alias0="inet 127.0.0.251 netmask 0xffffffff"
   ifconfig_ed0_alias1="inet 127.0.0.252 netmask 0xffffffff"
   ifconfig_ed0_alias2="inet 127.0.0.253 netmask 0xffffffff"
   ifconfig_ed0_alias3="inet 127.0.0.254 netmask 0xffffffff"

   ifconfig_ed0_aliases="\
     inet 127.0.0.251 netmask 0xffffffff \
     inet 127.0.0.252 netmask 0xffffffff \
     inet 127.0.0.253 netmask 0xffffffff \
     inet 127.0.0.254 netmask 0xffffffff \
   "

 The implementation actually converts values in the variables in
 ifconfig_IF_aliasN, ipv6_ifconfig_IF_aliasN, and ipv4_addrs_IF into a
 list of them in a consistent format (AF-keyword + address spec +
 options) used in ifconfig_IF_aliases, and then it processes
 ifconfig_IF_aliases and them.

 ifconfig_IF_aliasN accepts address spec without address family
 keyword for backward compatibility, but ifconfig_IF_aliases does not.
 This is the difference between the two.

fe> This thread isn't exactly the proper forum to debate the future of
fe> network configuration on FreeBSD, but please take this into
fe> consideration. And thank you for your work on the rc.d scripts --
fe> they're the #1 reason many of us prefer working with FreeBSD.

 Fair enough.  Please do not hesitate to speak up on freebsd-rc@ for
 this kind of topics.

-- Hiroki

----Security_Multipart(Wed_Jul_17_22_18_57_2013_471)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlHmmcEACgkQTyzT2CeTzy0yfACfccDdqLfKM7LKHlTHujotPnNF
LHoAmQGBihWAWdUnZOmbyc7zR+/L48ZO
=AJd5
-----END PGP SIGNATURE-----

----Security_Multipart(Wed_Jul_17_22_18_57_2013_471)----



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