Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 May 1999 16:08:13 -0400
From:      Kenn Martin <kmartin@infoteam.com>
To:        Nathanael Lierly <lierly@mauigateway.com>
Cc:        freebsd-isp@FreeBSD.ORG
Subject:   Re: ifconfig_if0_alias?
Message-ID:  <19990520160813.A15580@infoteam.com>
In-Reply-To: <Pine.BSF.3.96.990520094253.90989K-100000@sozo.mauigateway.com>; from Nathanael Lierly on Thu, May 20, 1999 at 09:46:50AM %2B0000
References:  <Pine.BSF.3.96.990520094253.90989K-100000@sozo.mauigateway.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990520160813.A15580>