Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2013 14:21:27 +0200
From:      =?UTF-8?B?xYF1a2FzeiBXxIVzaWtvd3NraQ==?= <lukasz@wasikowski.net>
To:        Mark Felder <feld@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: ipv6_addrs_IF aliases in rc.conf(5)
Message-ID:  <51E53AC7.1040307@wasikowski.net>
In-Reply-To: <1373974161.29269.140661256227369.575EA8E4@webmail.messagingengine.com>
References:  <CAN6yY1sRSWEMj2_bJX_DRZMxgk4tf50_ODe8O8i2d6wTrGW3ug@mail.gmail.com> <20130712.135621.1408565802386368060.hrs@allbsd.org> <4c07217dc9200841dfd065a6d52849eb@mx1.enfer-du-nord.net> <20130712.160358.1330135778606339435.hrs@allbsd.org> <51E52AA8.3010109@wasikowski.net> <1373974161.29269.140661256227369.575EA8E4@webmail.messagingengine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
W dniu 2013-07-16 13:29, Mark Felder pisze:

> On Tue, Jul 16, 2013, at 6:12, Łukasz Wąsikowski wrote:
>>
>> What is the current, non deprecated way, to configure IP addresses in
>> rc.conf? Let's say for a dual stack, multi IP box I need to set:
>>
>> 10.0.0.66/28 and 10.0.0.67-78 as aliases and
>> fdda:5cc1:23:4::1/48 and fdda:5cc1:23:4::2-f as aliases
>>
>> What is the best way to accomplish it?
>>
> 
> 
> ipv4_addrs_em0="10.0.0.66-78/28"
> 
> ipv6 syntax depends on if you're using 8.x or 9.1-RELEASE, but you're
> going to have to do all the aliases manually.

I'm using ipv4_addrs_em0 now (and ipv6_addrs_em0 with Kimmo Paasiala's
patch), but Hiroki Sato wrote:

hr>    # IPv4 address range spec.  Now deprecated.
hr>    ipv4_addr_em0="10.2.1.1-10"

So I'm a little confused now :) If I'd use post r252015 system then
would this be better way?

ifconfig_em0_aliases="inet 10.0.0.66/28 inet 10.0.0.67-78 inet6
fdda:5cc1:23:4::1/48 inet6 fdda:5cc1:23:4::2-f"

-- 
best regards,
Lukasz Wasikowski



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