Date: Wed, 27 Jan 1999 14:14:53 -0600 (CST) From: "Paul T. Root" <proot@horton.iaces.com> To: pcollins@ocsny.com (Pete Collins) Cc: jwg@netbox.com, freebsd-questions@FreeBSD.ORG Subject: Re: ifconfig Message-ID: <199901272014.OAA08180@horton.iaces.com> In-Reply-To: <36AF2630.C938A510@ocsny.com> from Pete Collins at "Jan 27, 99 02:44:00 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
In a previous message, Pete Collins said: > thanks guys > > will try now > > ifconfig vx0 inet 000.000.00.00 netmask 0xffffffc0 up > > however i dont need to specify alias22 ?? Yep. Look in /etc/rc.network and you see what happens: alias=0 while : do eval ifconfig_args=\$ifconfig_${ifn}_alias${alias} if [ -n "${ifconfig_args}" ]; then ifconfig ${ifn} ${ifconfig_args} alias alias=`expr ${alias} + 1` else break; fi done You'll see that the variable $alias is never actually used, currently. ${ifn} is vx0 $alias is 22 for this example, but isn't used. > pete > > > If your asking how to add an alias w/out rebooting, I think it's: > > > > ifconfig vx0 inet 000.000.00.00 netmask 0xffffffc0 up As I said before, I screwed up here. "up" should be "alias" -- "I think I left it in the basement. I'll run upstairs and have a look." --M.C. Escher To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901272014.OAA08180>