From owner-freebsd-stable Tue Mar 25 4:45:23 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 B9B8E37B401 for ; Tue, 25 Mar 2003 04:45:21 -0800 (PST) Received: from mail.distalzou.net (203.141.139.231.user.ad.il24.net [203.141.139.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDDA543F75 for ; Tue, 25 Mar 2003 04:45:20 -0800 (PST) (envelope-from devin@spamcop.net) Received: from localhost ([127.0.0.1]) by mail.distalzou.net with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.36 #1) id 18xnnD-000GwV-00; Tue, 25 Mar 2003 21:44:39 +0900 Date: Tue, 25 Mar 2003 21:44:39 +0900 (JST) From: Tod McQuillin X-X-Sender: devin@glass.pun-pun.prv To: Murat USTUNTAS Cc: stable@freebsd.org Subject: Re: ifconfig alias file exists error In-Reply-To: <3E804DC2.6060307@bimel.com.tr> Message-ID: <20030325214220.O92091@glass.pun-pun.prv> References: <3E804DC2.6060307@bimel.com.tr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-22.6 required=5.0 tests=EMAIL_ATTRIBUTION,HOT_NASTY,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES 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 Tue, 25 Mar 2003, Murat USTUNTAS wrote: > 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? Murat, ifconfig gives different results depending on the arguments you give it. Since you've completely obscured the netmask, I can't say for sure, but as a wild guess, are you trying to add an alias on the same subnet as an IP that is already assigned to the interface? If so, the netmask must be 255.255.255.255, not the netmask for the subnet size you are using. -- Tod McQuillin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message