From owner-freebsd-isp Thu May 20 13: 8:47 1999 Delivered-To: freebsd-isp@freebsd.org Received: from calumet.infoteam.com (calumet.infoteam.com [207.246.83.3]) by hub.freebsd.org (Postfix) with ESMTP id 52A35150AF for ; Thu, 20 May 1999 13:08:27 -0700 (PDT) (envelope-from kmartin@infoteam.com) Received: (from kmartin@localhost) by calumet.infoteam.com (8.8.8/8.8.8) id QAA15660; Thu, 20 May 1999 16:08:14 -0400 (EDT) (envelope-from kmartin) Date: Thu, 20 May 1999 16:08:13 -0400 From: Kenn Martin To: Nathanael Lierly Cc: freebsd-isp@FreeBSD.ORG Subject: Re: ifconfig_if0_alias? Message-ID: <19990520160813.A15580@infoteam.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: ; from Nathanael Lierly on Thu, May 20, 1999 at 09:46:50AM +0000 Organization: InfoTeam Corp, Lexington X-Phone: 1 606 335 7233 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, May 20, 1999 at 09:46:50AM +0000, Nathanael Lierly wrote: > Aloha, > > I am working on getting a slew of ip's addressed to one interface on a > FreeBSD 3.1-R box. Formerly on other boxes I have done this through useing > the actuall ifconfig command in rc.local. I am trying to get the right > sytax for enteringin rc.conf, I have seen the example in defaults/rc.conf. > > My question is this, does the aliasX have to ascend in exact order from 0 > up with no breaks. If this is so it makes it auful hard for someone with > alot of ip's. Yes, they must ascend in order with no breaks, thus I prefer a script method: ---8<--- calumet% cat /usr/local/etc/rc.d/00.aliases.sh #!/bin/sh aliases1="3 4 5 6 7 8 9 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 141 142 143 144 145 146 147 148 149 151 152 153 155 157 158 159 160 161 162 163 164 166 167 168 169 172 173" aliases2="3 6 7 8 12" for h in $aliases1; do ifconfig fxp0 inet 207.246.84.$h netmask 255.255.255.255 alias done for h in $aliases2; do ifconfig fxp0 inet 207.246.85.$h netmask 255.255.255.255 alias done --->8--- kenn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message