From owner-freebsd-stable Tue Mar 25 10:40:57 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56C3E37B401 for ; Tue, 25 Mar 2003 10:40:54 -0800 (PST) Received: from apollo.laserfence.net (apollo.laserfence.net [196.44.69.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id A979143FA3 for ; Tue, 25 Mar 2003 10:40:49 -0800 (PST) (envelope-from will@unfoldings.net) Received: from localhost ([127.0.0.1]) by apollo.laserfence.net with esmtp (Exim 4.10) id 18xtLd-0008CB-00; Tue, 25 Mar 2003 20:40:33 +0200 Received: from prometheus-p0.datel.laserfence.net ([192.168.255.1] helo=prometheus.home.laserfence.net) by apollo.laserfence.net with esmtp (Exim 4.10) id 18xtKp-0008BM-00; Tue, 25 Mar 2003 20:39:46 +0200 Received: from phoenix.home.laserfence.net ([192.168.0.2]) by prometheus.home.laserfence.net with esmtp (Exim 4.10) id 18xtKg-0007qh-00; Tue, 25 Mar 2003 20:39:34 +0200 Received: from will by phoenix.home.laserfence.net with local (Exim 4.10) id 18xnmg-0000JL-00; Tue, 25 Mar 2003 14:44:06 +0200 From: Willie Viljoen To: Sten Daniel =?iso-8859-1?q?S=F8rsdal?= , "Murat USTUNTAS" , Subject: Re: ifconfig alias file exists error Date: Tue, 25 Mar 2003 14:44:06 +0200 User-Agent: KMail/1.5 References: <0AF1BBDF1218F14E9B4CCE414744E70F1F3C83@exchange.wanglobal.net> In-Reply-To: <0AF1BBDF1218F14E9B4CCE414744E70F1F3C83@exchange.wanglobal.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200303251444.06073.will@unfoldings.net> X-Spam-Score: (/) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *18xtKp-0008BM-00*f2i3oyQIAx6* X-Virus-Scanned: by AMaViS snapshot-20020422 X-Spam-Status: No, hits=-20.5 required=5.0 tests=AWL,DATE_IN_PAST_03_06,HOT_NASTY,IN_REP_TO, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES,USER_AGENT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tuesday 25 March 2003 14:34, someone, possibly Sten Daniel S=F8rsdal,=20 typed: > > Hello all, > > I want to put second IP on my nic cart. I have been using > > FreeBSD-4.8-RC, when i put the command, > > ifconfig rl0 alias xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx > > returns me: > > ifconfig: ioctl (SIOCAIFADDR): File exists > > What is the problem? This is a common problem. You're probably adding IPs on the same subnet. Fo= r=20 the second IP on a subnet, you want a netmask of 255.255.255.255, or=20 routing can go badly wrong. The command you want is: ifconfig rl0 add xxx.xxx.xxx.xxx netmask 255.255.255.255 By the way, you can set this permanently in /etc/rc.conf: ifconfig_rl0=3D"inet 10.0.0.1 netmask 255.255.255.0" ifconfig_rl0_alias0=3D"inet 10.0.0.9 netmask 255.255.255.255" Will =2D-=20 Willie Viljoen =46reelance IT Consultant 214 Paul Kruger Avenue, Universitas Bloemfontein 9321 South Africa +27 51 522 15 60 +27 51 522 44 36 (after hours) +27 82 404 03 27 (mobile) will@unfoldings.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message