Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jul 2013 18:36:28 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        dewayne.geraghty@heuristicsystems.com.au, lukasz@wasikowski.net
Cc:        rkoberman@gmail.com, freebsd-stable@FreeBSD.org
Subject:   Re: ipv6_addrs_IF aliases in rc.conf(5)
Message-ID:  <20130717.183628.1254490649724740016.hrs@allbsd.org>
In-Reply-To: <14677223DB6D4CD48E880520725B3552@white> <51E53AC7.1040307@wasikowski.net>
References:  <4c07217dc9200841dfd065a6d52849eb@mx1.enfer-du-nord.net> <20130712.160358.1330135778606339435.hrs@allbsd.org> <14677223DB6D4CD48E880520725B3552@white>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Łukasz Wąsikowski <lukasz@wasikowski.net> wrote
  in <51E53AC7.1040307@wasikowski.net>:

lu> hr>    # IPv4 address range spec.  Now deprecated.
lu> hr>    ipv4_addr_em0="10.2.1.1-10"
lu> 
lu> So I'm a little confused now :) If I'd use post r252015 system then
lu> would this be better way?
lu> 
lu> ifconfig_em0_aliases="inet 10.0.0.66/28 inet 10.0.0.67-78 inet6
lu> fdda:5cc1:23:4::1/48 inet6 fdda:5cc1:23:4::2-f"

"Dewayne Geraghty" <dewayne.geraghty@heuristicsystems.com.au> wrote
  in <14677223DB6D4CD48E880520725B3552@white>:

de> Sato-san,
de> 
de> You have provided a very useful summary of ifconfig parameters for
de> rc.conf. However, you are missing one example that would provide
de> clearer understanding.  Would you please advise if 
de>  
de> ipv4_addr_em0="10.2.1.1-10/32"
de> 
de> is deprecated, backward compatible or remains valid into the future?
de> 
de> I particularly appreciate the succinctness of:
de> ifconfig_em0_aliases="inet 10.3.3.201-204/24 inet6
de> 2001:db8:210-213::1/64 inet 10.1.1.1/24"

 The recommended way is ifconfig_IF_aliasN or ifconfig_IF_aliases.
 ipv4_addr_IF will not be removed in the near future, but please use
 ifconfig_IF_alias{N,es} for newly-configured systems.  Backward
 compatibility for not breaking the existing configurations will be
 maintained as much as possible (even on the upcoming 10.0R and
 later).

 This is because we have a lot of variables which have (almost) the
 same functionality in rc.conf and I want to simplify them by merging
 them with each other, not because these are better than the others.
 Variables with overlapped functionality have made difficult to
 maintain/improve the rc.d scripts.

-- Hiroki

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (FreeBSD)

iEYEABECAAYFAlHmZZwACgkQTyzT2CeTzy1R3wCfW4VxMSSZ9funqp+VZy4t95XX
EMsAniJFRTp3L72P140GoW6oaofjPrG3
=35FF
-----END PGP SIGNATURE-----

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