Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jan 1999 15:24:24 +0000
From:      Pete Collins <pcollins@ocsny.com>
To:        "Paul T. Root" <proot@horton.iaces.com>
Cc:        jwg@netbox.com, freebsd-questions@FreeBSD.ORG
Subject:   Re: ifconfig
Message-ID:  <36AF2FA8.435BCB7D@ocsny.com>
References:  <199901272014.OAA08180@horton.iaces.com>

next in thread | previous in thread | raw e-mail | index | archive | help
got it thanks

pete

"Paul T. Root" wrote:

> 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


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?36AF2FA8.435BCB7D>