From owner-freebsd-questions Wed Feb 7 12: 3:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id B063637B401 for ; Wed, 7 Feb 2001 12:03:20 -0800 (PST) Received: (qmail 4214 invoked by uid 1000); 7 Feb 2001 20:00:41 -0000 Date: Wed, 7 Feb 2001 14:00:40 -0600 From: Lucas Bergman To: ereese Cc: freebsd-questions@freebsd.org Subject: Re: multiple IP addresses/interface (was: vhost) Message-ID: <20010207140040.E29737@billygoat.slb.to> Reply-To: lucas@slb.to References: <000801c09130$3d3fe830$0926a93f@aries> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000801c09130$3d3fe830$0926a93f@aries>; from ereese@acool.net on Wed, Feb 07, 2001 at 01:03:12PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > how do i publish multiple ips to the freebsd box to use with vhost > and virtual hosted webs? ie... i have 1 ip for the box i need to > add many more for different vhost. i need to know how to make them > permenant and add on the fly without having to reboot each time to > add a new vhost # ifconfig zz0 inet 1.2.3.4 alias Check ifconfig(8) and look at the "alias" command. To remove an alias, # ifconfig zz0 inet 1.2.3.4 -alias You can also add lines in /etc/rc.conf like ifconfig_zz0_alias0="inet 1.2.3.4" ifconfig_zz0_alias1="inet 2.3.4.5" and so on, to make the aliases happen when you boot. Paraphrasing ifconfig(8), if the alias is on the same subnet as the first network address for the interface, add "netmask 255.255.255.255" (or, of course, "netmask 0xffffffff") after the IP address. > ... will someone pls give me ... What is with people spelling please as "pls?" Are the keys with the vowels on them somehow harder to push? Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message