From owner-freebsd-questions Sun Aug 25 20:48:54 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 E053737B400 for ; Sun, 25 Aug 2002 20:48:50 -0700 (PDT) Received: from audiblefaith.com (audiofaith.com [216.55.6.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7793443E42 for ; Sun, 25 Aug 2002 20:48:50 -0700 (PDT) (envelope-from roger@audiblefaith.com) Received: from audiblefaith.com (12-236-163-176.client.attbi.com [12.236.163.176]) by audiblefaith.com (8.9.3/8.9.3) with ESMTP id UAA61660; Sun, 25 Aug 2002 20:47:55 -0700 (PDT) Message-ID: <3D69A483.CB60E520@audiblefaith.com> Date: Sun, 25 Aug 2002 20:46:11 -0700 From: Roger Harrell X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: Leigh V , freebsd-questions@FreeBSD.ORG Subject: Re: How to configure multiple IPs on FreeBSD References: <3D67FEA3.81CA0D0B@audiblefaith.com> <008b01c24bdd$0628fbc0$2d01a8c0@michael> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 I added the lines ifconfig_fxp0_alias0="inet anotherserverip netmask 255.255.255.0" ifconfig_fxp0_alias1="inet anotherserverip netmask 255.255.255.0" to rc.conf but haven't rebooted, I'm a bit nervous that something's not quite right. When I do: ifconfig fxp0 inet myextractip netmask 255.255.255.0 add I get the error: ifconfig: ioctl (SIOCAIFADDR): File exists I get the same error if I run it: ifconfig fxp0 inet myextractip netmask 255.255.255.0 alias What am I missing? Thanks, -- Roger > The best quick way to find out is to use webmin www.webmin.com and add an > extra IP via its web interface and then check the /etc/rc.conf file to see > what it did. > A real world example tailor made to exactly what you want as what you get > from webmin is much better then a reference man page that doesn't have any > examples such as man ipconfig or man rc.conf > Here is an example anyway > ifconfig_fxp0_alias0="inet anotherserverip netmask 255.255.255.224" > or you can just do it on the command like and put the "add" after it > ifconfig fxp0 inet myextractip netmask 255.255.255.0 add > I have forgoten to put the "add" keyword a compile of times on realworld > servers and brought the server down. And most times I am specifically > thinking about the "add" keyword and not to forget it :) ah well. > If only my company would be willing to pay for serial cables for console :| To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message