From owner-freebsd-stable Thu Nov 11 12:38:28 1999 Delivered-To: freebsd-stable@freebsd.org Received: from s01.arpa-canada.net (s01.arpa-canada.net [209.104.122.2]) by hub.freebsd.org (Postfix) with ESMTP id C566914D6F for ; Thu, 11 Nov 1999 12:38:22 -0800 (PST) (envelope-from matt@BabCom.ORG) Received: by s01.arpa-canada.net (Postfix, from userid 1001) id 49AF7B889; Thu, 11 Nov 1999 15:38:21 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by s01.arpa-canada.net (Postfix) with ESMTP id 43159E; Thu, 11 Nov 1999 15:38:21 -0500 (EST) Date: Thu, 11 Nov 1999 15:38:21 -0500 (EST) From: matt X-Sender: matt@s01.arpa-canada.net To: "Matthew D. Fuller" Cc: FreeBSD Stable Subject: Re: Help with ifconfig In-Reply-To: <19991111142009.Y393@futuresouth.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 11 Nov 1999, Matthew D. Fuller wrote: [...] : This becomes ungodly ugly when you have 3 or 4 C's. Better to use an : external script. And do you REALLY want a /24 netmask on all of them?? I made a script called /etc/rc.ifconfig, I suppose this should be /usr/local/etc for technical correctness, but it works nicer than the ifconfig_ed0_aliasX types in /etc/rc.conf, I make rc.local call rc.ifconfig- This is what it looks like: -- rc.ifconfig start -- #!/bin/sh echo -n 'Binding Aliased IPs...' i=3 j=128 while test ${i} -lt ${j} ; do /sbin/ifconfig ed0 inet 209.104.122.${i} netmask 0xffffffff alias 2>/dev/null i=`/bin/expr ${i} + 1` done echo " done" -- rc.ifconfig end -- [...] Matt -- "If the primates that we came from had known that someday politicians would come out of the...the gene pool, they'd a stayed up in the trees and written evolution off as a bad idea. Hell, I always thought the opposable thumb was overrated." -Sheridan, "A Distant Star" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message