Reducing 124 ifconfig lines in rc.conf to just 1

Redd Vinylene reddvinylene at gmail.com
Sat Aug 2 19:58:59 UTC 2008


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 at 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


More information about the freebsd-questions mailing list