From owner-freebsd-questions Sun Aug 25 4:35:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0F5F37B400 for ; Sun, 25 Aug 2002 04:35:16 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D395543E72 for ; Sun, 25 Aug 2002 04:35:15 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7PBYUQI007932; Sun, 25 Aug 2002 12:34:30 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7PBYPDV007931; Sun, 25 Aug 2002 12:34:25 +0100 (BST) Date: Sun, 25 Aug 2002 12:34:25 +0100 From: Matthew Seaman To: Roger Harrell Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to configure multiple IPs on FreeBSD Message-ID: <20020825113425.GB3075@happy-idiot-talk.infracaninophi> References: <3D67FEA3.81CA0D0B@audiblefaith.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D67FEA3.81CA0D0B@audiblefaith.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Aug 24, 2002 at 02:46:11PM -0700, Roger Harrell wrote: > What can I do to get the server to respond to two more IP addresses? Are > there other files I need to edit as well. Also I did see a post about > being able to do something like this without rebooting, so if that's > possible I'd like information on that as well. Always better if it can > be done without a reboot. I'm pretty new to this level of admin. Thanks. To add an alias IP numbers to an already runnning system --- assuming the alias IPs belong to the same network as the principal IP number of the interface --- run these commands, substituting the correct IP numbers for your setup: ifconfig fxp0 inet 12.34.56.78 netmask 0xffffffff alias ifconfig fxp0 inet 12.34.56.79 netmask 0xffffffff alias To make the same configuration persist through reboots, modify /etc/rc.conf to add lines: ifconfig_fxp0_alias0="inet 12.34.56.78 netmask 0xffffffff" ifconfig_fxp0_alias1="inet 12.34.56.79 netmask 0xffffffff" Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message