From owner-freebsd-questions Tue Apr 13 17:34:48 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 110D91512F for ; Tue, 13 Apr 1999 17:34:45 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.8.8) id UAA22592; Tue, 13 Apr 1999 20:32:27 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199904140032.UAA22592@cc942873-a.ewndsr1.nj.home.com> Subject: Re: Adding IP Addresses to FreeBSD In-Reply-To: <005c01be860a$29fe9e20$caa315a5@oasis> from Ho Seng Yip at "Apr 14, 99 07:36:45 am" To: hsengyip@singnet.com.sg Date: Tue, 13 Apr 1999 20:32:27 -0400 (EDT) Cc: freebsd-questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ho Seng Yip wrote, > Hi, > > I am currently running FreeBSD 3.1 and will like to know how I can add > additional IP addresses other than the main one the machine is allocated. > The additional IP addresses will be used to support virtual hosting. > > What files do I have to edit ? > > Thanks. To get it to work NOW, no editing. Just, # ifconfig interface inet aaa.bbb.ccc.ddd netmask eee.fff.ggg.hhh alias Where 'interface' is the name of your network interface and the IP addresses are whatever you are adding. To make it 'stick' if someday, you need to reboot, add to /etc/rc.conf, ifconfig_interface_alias0="inet aaa.bbb.ccc.ddd netmask eee.fff.ggg.hhh" Where the arguments are the same as before. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message