From owner-freebsd-questions@FreeBSD.ORG Sat Aug 2 19:58:59 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27D031065673 for ; Sat, 2 Aug 2008 19:58:59 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.186]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7318FC0C for ; Sat, 2 Aug 2008 19:58:58 +0000 (UTC) (envelope-from reddvinylene@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so1184694mue.3 for ; Sat, 02 Aug 2008 12:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=zVsikRHM7moWunHoZXXqPS9mp1n1mjncc3Tlv3s0TV0=; b=XHTEk/VGmARf1vw+G7KkC6abgbZeOAGIE0Zxx6BleUlKGtIo4RngtaoSViFj6zJu/l pK6yj/+7v2mQUxq2ahsiK5C4wE/mbCPblwNim2GqFw6Ka9qJI5YYf4aAh4S38+IA1p0D y+bxWmwY3FOzYrpm8SQrm4+SMLUXdW/K386xw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qgsZ41NaDfuKx1WX2jXC3YV90lMz69jSkm+39/ceYaFGfycFypXKbOFH+X5AGwIW0S kPqdUv50y8eKduoV7MerWFmL9YD1lAVgGlGkbzJYJbtsSa/937gfZfzQNFfxp9v7SSph i3lJ4H2rVAU6vUFxyvdLcPbQJDCIcjfZrVh14= Received: by 10.103.202.18 with SMTP id e18mr4801735muq.59.1217707136918; Sat, 02 Aug 2008 12:58:56 -0700 (PDT) Received: by 10.103.199.5 with HTTP; Sat, 2 Aug 2008 12:58:56 -0700 (PDT) Message-ID: Date: Sat, 2 Aug 2008 21:58:56 +0200 From: "Redd Vinylene" To: "Robert Huff" , questions@freebsd.org In-Reply-To: <18580.47417.852480.697885@jerusalem.litteratus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18580.47417.852480.697885@jerusalem.litteratus.org> Cc: Subject: Re: Reducing 124 ifconfig lines in rc.conf to just 1 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: Sat, 02 Aug 2008 19:58:59 -0000 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 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