range of IPs in rc.conf

Glen Barber glen.j.barber at gmail.com
Sun Apr 5 05:22:15 PDT 2009


On Sun, Apr 5, 2009 at 7:46 AM, lucian at lastdot.org <lucian at lastdot.org> wrote:
> Hi,
>
> I need to use around 30 IPs on a freebsd 7 machine. Is there a way to avoid
> adding 30 lines of aliases in rc.conf? On RedHat/Centos I use this trick:
> http://wiki.centos.org/TipsAndTricks/RangeOfIpsOnEthx
>

You could create a customized rc file (I personally use rc.local)
which will be run at boot.  You could then use #!/bin/sh and a 'for'
loop to create the devices.

IMHO, this solution is a lot uglier than 30 extra lines in rc.conf.

-- 
Glen Barber


More information about the freebsd-questions mailing list