Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Aug 2008 21:58:56 +0200
From:      "Redd Vinylene" <reddvinylene@gmail.com>
To:        "Robert Huff" <roberthuff@rcn.com>, questions@freebsd.org
Subject:   Re: Reducing 124 ifconfig lines in rc.conf to just 1
Message-ID:  <f1019d520808021258w11cd63aakb54f99214c0d2427@mail.gmail.com>
In-Reply-To: <18580.47417.852480.697885@jerusalem.litteratus.org>
References:  <f1019d520808021211l2208ca86s7a66af15417d9de6@mail.gmail.com> <18580.47417.852480.697885@jerusalem.litteratus.org>

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

But isn't that to define the entire class? In my case it's just *.3 to
*.127, do you mean I can just

ifconfig_rl0_aliases="inet 80.252.2.3/127 netmask 255.255.255.255"

or something? Probably not but worth a try ;)

On Sat, Aug 2, 2008 at 9:44 PM, Robert Huff <roberthuff@rcn.com> wrote:
>
> Redd Vinylene writes:
>
>>  I got 124 ifconfig lines going from ifconfig_rl0_alias0="inet
>>  80.252.2.3 netmask 255.255.255.255" to ifconfig_rl0_alias124="inet
>>  80.252.2.127 netmask 255.255.255.255".
>>
>>  Is it possible reducing it all to just 1 line using a for loop or jot
>>  or something?
>
>        Have you examined CIDR notation?  ifconfig supports it.
>
>
>                                        Robert Huff
>
>



-- 
http://www.home.no/reddvinylene



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