From owner-freebsd-questions@FreeBSD.ORG Sun Apr 5 12:22:14 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B2B3106566B for ; Sun, 5 Apr 2009 12:22:14 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mx1.freebsd.org (Postfix) with ESMTP id 5415A8FC19 for ; Sun, 5 Apr 2009 12:22:14 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by gxk24 with SMTP id 24so5206389gxk.19 for ; Sun, 05 Apr 2009 05:22:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sARrMChgsWGof6+c3XeS8Q7gR/4Sz9d9COUv6RlRoMA=; b=aFLPwAwYK4Tudbl5nRO1bbHZ8YRmwb7Vow8wObRehKTVpiHqMytx/rI13DPvVtfsDN MtsVurxwG5g00L1v5w4xIr1lTuFQaOYuwj4YVUGgM+q2V6/qgH45rNzmumKD5tSvJAr3 3r61U76udtNjGzi0ftnSuKl61LyVpY86R7jEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=XO6fjTbYB7uMVAaJ540vJ2dzVfY8TWZ3ZKn3DOjw/1a7WXlCE+hL1lRyDB8Lq2m4HE lIH/Lj8hQuzire4UsYUSSmspDrtIhInP8q6nbVz8gYExOK8hTWz8u6FWmTLRZB2RGC7N 1z9DTo/HbvcwjAXIOGuTX43+SrxKCD8jzdmGQ= MIME-Version: 1.0 Received: by 10.100.252.18 with SMTP id z18mr1821349anh.52.1238934133567; Sun, 05 Apr 2009 05:22:13 -0700 (PDT) In-Reply-To: <49D89A2B.30906@lastdot.org> References: <49D89A2B.30906@lastdot.org> Date: Sun, 5 Apr 2009 08:22:13 -0400 Message-ID: <4ad871310904050522h1483d1f7lbddd504fb9f5f9e4@mail.gmail.com> From: Glen Barber To: "lucian@lastdot.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: range of IPs in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Apr 2009 12:22:15 -0000 On Sun, Apr 5, 2009 at 7:46 AM, lucian@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