From owner-freebsd-questions Mon Aug 26 11:44:38 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 088E537B400 for ; Mon, 26 Aug 2002 11:44:35 -0700 (PDT) Received: from hotmail.com (oe35.pav2.hotmail.com [64.4.36.92]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC2A943EAC for ; Mon, 26 Aug 2002 11:44:34 -0700 (PDT) (envelope-from unixtools@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 26 Aug 2002 11:44:34 -0700 X-Originating-IP: [202.41.224.36] From: "Unix Tools" To: "Roger Harrell" , "Leigh V" , References: <3D67FEA3.81CA0D0B@audiblefaith.com> <008b01c24bdd$0628fbc0$2d01a8c0@michael> <3D69A483.CB60E520@audiblefaith.com> Subject: Re: How to configure multiple IPs on FreeBSD Date: Mon, 26 Aug 2002 12:29:41 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 26 Aug 2002 18:44:34.0700 (UTC) FILETIME=[9F5964C0:01C24D30] 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 /sbin/ifconfig rl0 netmask 255.255.255.255 alias is the right command ----- Original Message ----- From: "Roger Harrell" To: "Leigh V" ; Sent: Monday, August 26, 2002 09:16 AM Subject: Re: How to configure multiple IPs on FreeBSD > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message