Date: Thu, 11 Nov 1999 15:38:21 -0500 (EST) From: matt <matt@BabCom.ORG> To: "Matthew D. Fuller" <fullermd@futuresouth.com> Cc: FreeBSD Stable <freebsd-stable@FreeBSD.ORG> Subject: Re: Help with ifconfig Message-ID: <Pine.BSF.4.20.9911111535320.1508-100000@s01.arpa-canada.net> In-Reply-To: <19991111142009.Y393@futuresouth.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.9911111535320.1508-100000>
