Date: Thu, 11 Nov 1999 06:45:00 -0600 (CST) From: "Jeffrey J. Libman" <jeffrl@wantabe.com> To: Wayne M Barnes <stabilizer@klentaq.com> Cc: FreeBSD Stable <freebsd-stable@FreeBSD.ORG> Subject: Re: Help with ifconfig Message-ID: <Pine.BSF.4.10.9911110642450.12815-100000@binnacle.wantabe.com> In-Reply-To: <199911110440.WAA01899@klentaq.com>
next in thread | previous in thread | raw e-mail | index | archive | help
for freeBSD this is the simplest:
i have the following lines in /etc/rc.conf:
ifconfig_lo0_alias1="inet 209.16.8.6 netmask 0xffffff00"
ifconfig_lo0_alias2="inet 209.16.8.7 netmask 0xffffff00"
ifconfig_lo0_alias3="inet 209.16.8.82 netmask 0xffffff00"
ifconfig_lo0_alias4="inet 209.16.8.87 netmask 0xffffff00"
ifconfig_lo0_alias5="inet 209.16.8.122 netmask 0xffffff00"
ifconfig_lo0_alias6="inet 209.16.8.10 netmask 0xffffff00"
ifconfig_lo0_alias7="inet 209.16.8.102 netmask 0xffffff00"
ifconfig_lo0_alias8="inet 209.16.8.206 netmask 0xffffff00"
the rc.network code reads these and does the ifconfig lines automatically.
the only other thing needed: if you want the world to actually "see" these
addresses, besides in apache, via ping, traceroute, etc, you need to turn
on the proxy arp in rc.conf thusly:
arpproxy_all="YES"
hoping this helps.
cheers,
jeff
|
|\ +------------------------------+
Jeffrey J. Libman, ops. mgr. | \ | Wantabe Internet Services |
Wantabe, Inc. |__\ +------------------------------+
jeffrl@wantabe.com <-----|------> | access web cgi ftp news mail |
(281) 493-0718 __,.-=\'`^`'~=-../__,.-= +------------------------------+
On Wed, 10 Nov 1999, Wayne M Barnes wrote:
> Dear Jeff,
>
> Could you please give more details for how to "use lo0"?
> What is your ifconfig line, exactly?
> I have been having trouble implementing apache virtual hosting,
> and I would like to try your way.
> Please add other details, if you think of them.
> Thank you,
>
> Wayne M Barnes stabilizer@klentaq.com
>
>
> > this is normal. if you netstat -I ed1, you should see that the ip is
> > there. i believe this happens because the interface is already
> > ifconfig'd...but works.
> >
> > i use lo0 for my virtual hosting...it avoids the error message and works
> > fine.
> >
> > cheers,
> > jeff
> >
> > |
> > |\ +------------------------------+
> > Jeffrey J. Libman, ops. mgr. | \ | Wantabe Internet Services |
> > Wantabe, Inc. |__\ +------------------------------+
> > jeffrl@wantabe.com <-----|------> | access web cgi ftp news mail |
> > (281) 493-0718 __,.-=\'`^`'~=-../__,.-= +------------------------------+
> >
> > On Mon, 8 Nov 1999, Vince Valenti wrote:
> >
> > > It's probably something blatantly obvious, but I can't seem to make aliases
> > > for an interface.
> > >
> > > When I type:
> > >
> > > # ifconfig ed1 inet 10.0.0.10 netmask 255.255.255.0
> > >
> > > I get no errors. However, when I type this:
> > >
> > > # ifconfig ed1 inet 10.0.0.11 netmask 255.255.255.0 alias
> > > ifconfig: ioctl (SIOCAIFADDR): File exists
> > >
> > > I get the above error.
> > >
> > > Does anyone have any idea what I'm doing wrong?
> > >
> > > Thanks,
> > >
> > > Vince Valenti
> > > Senior Technical Engineer
> > > vValenti@LoansLive.Com
> > >
> > >
> > >
> > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > with "unsubscribe freebsd-stable" in the body of the message
> > >
> > >
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-stable" in the body of the message
> >
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message
>
>
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.10.9911110642450.12815-100000>
