From owner-freebsd-stable Thu Nov 11 4:45:20 1999 Delivered-To: freebsd-stable@freebsd.org Received: from binnacle.wantabe.com (binnacle.wantabe.com [209.16.8.14]) by hub.freebsd.org (Postfix) with ESMTP id 996D214D05 for ; Thu, 11 Nov 1999 04:45:03 -0800 (PST) (envelope-from jeffrl@wantabe.com) Received: from localhost (jeffrl@localhost) by binnacle.wantabe.com (8.9.3/8.9.2) with ESMTP id GAA12924; Thu, 11 Nov 1999 06:45:00 -0600 (CST) (envelope-from jeffrl@wantabe.com) X-Authentication-Warning: binnacle.wantabe.com: jeffrl owned process doing -bs Date: Thu, 11 Nov 1999 06:45:00 -0600 (CST) From: "Jeffrey J. Libman" To: Wayne M Barnes Cc: FreeBSD Stable Subject: Re: Help with ifconfig In-Reply-To: <199911110440.WAA01899@klentaq.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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