From owner-freebsd-questions Wed Jul 26 10: 1: 8 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id 21EAF37B7E1 for ; Wed, 26 Jul 2000 10:00:26 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.15 #1) id 13HTe2-0006X9-00; Wed, 26 Jul 2000 17:02:54 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.15 #1) id 13HTe2-0003WA-00; Wed, 26 Jul 2000 17:02:54 +0100 Date: Wed, 26 Jul 2000 17:02:54 +0100 From: Ben Smithurst To: Q Tuyen Cc: freebsd-questions@freebsd.org Subject: Re: Adding more ips to the box Message-ID: <20000726170254.J28657@strontium.scientia.demon.co.uk> References: <000b01bff708$34a08f80$cb3b35d1@bconnected.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <000b01bff708$34a08f80$cb3b35d1@bconnected.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Q Tuyen wrote: > The box im working is running named. with only 1 ip right now. I would like > to add more ips to the box so i can run some vhost. And it would make it > easier to add more host to it. > > i know you can do alias but not sure if that is the correct way of doing it > > any suggestion would b really apprec........ /etc/rc.conf: ifconfig_fxp0_alias0="inet 192.168.1.2 netmask 0xffffffff" ifconfig_fxp0_alias1="inet 192.168.1.3 netmask 0xffffffff" ifconfig_fxp0_alias2="inet 192.168.1.4 netmask 0xffffffff" ifconfig_fxp0_alias3="inet 192.168.1.5 netmask 0xffffffff" Change the interface name and IP address as necessary, the important bit if that you use a netmask of 0xffffffff (or 255.255.255.255) for the aliases. -- Ben Smithurst / ben@FreeBSD.org / PGP: 0x99392F7D FreeBSD Documentation Project / To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message