From owner-freebsd-questions@FreeBSD.ORG Wed Oct 20 07:12:26 2004 Return-Path: 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 B585C16A4CE for ; Wed, 20 Oct 2004 07:12:26 +0000 (GMT) Received: from mx11.cksoft.de (mx11.cksoft.de [62.111.66.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4AC843D1F for ; Wed, 20 Oct 2004 07:12:25 +0000 (GMT) (envelope-from ck-lists@cksoft.de) Received: from vesihiisi.cksoft.de (unknown [192.168.64.10]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mx11.cksoft.de (Postfix) with ESMTP id 1BFDBB85B; Wed, 20 Oct 2004 09:12:22 +0200 (CEST) Received: from vesihiisi.cksoft.de (localhost [127.0.0.1]) by vesihiisi.cksoft.de (Postfix) with ESMTP id B3B3F1EB0; Wed, 20 Oct 2004 09:12:20 +0200 (CEST) Received: by vesihiisi.cksoft.de (Postfix, from userid 1000) id 342311EAF; Wed, 20 Oct 2004 09:12:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by vesihiisi.cksoft.de (Postfix) with ESMTP id 2A49F1E84; Wed, 20 Oct 2004 09:12:18 +0200 (CEST) Date: Wed, 20 Oct 2004 09:12:18 +0200 (CEST) From: Christian Kratzer X-X-Sender: ck@vesihiisi.cksoft.de To: "Marc G. Fournier" In-Reply-To: <20041019164943.Y98762@ganymede.hub.org> Message-ID: <20041020091038.P95657@vesihiisi.cksoft.de> References: <20041019162521.N98762@ganymede.hub.org> <20041019214157.Y88138@vesihiisi.cksoft.de> <20041019164943.Y98762@ganymede.hub.org> X-Spammer-Kill-Ratio: 75% MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on vesihiisi.cksoft.de cc: freebsd-questions@freebsd.org Subject: Re: ifconfig alias: File Exists X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Christian Kratzer List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Oct 2004 07:12:26 -0000 Hi, On Tue, 19 Oct 2004, Marc G. Fournier wrote: > On Tue, 19 Oct 2004, Christian Kratzer wrote: > >> Hi, >> >> On Tue, 19 Oct 2004, Marc G. Fournier wrote: >> >>> >>> Why would I be getting: >>> >>> # ifconfig fxp0 alias 200.46.204.9 >>> ifconfig: ioctl (SIOCAIFADDR): File exists >>> >>> when I know for a fact that it hasn't been configured? >> >> you should use a netmask of 255.255.255.255 for ipv4 aliases. >> >> ifconfig fxp0 alias 200.46.204.9 netmask 255.255.255.255 > > Is that new? You are right, that fixed it, but didn't think I had to do that > before :( no it's been like that since I know of FreeBSD 2.0 and propably longer. The BSD ip stack adds a route to the connected network over the respective interface when you do an ifconfig. Using the same netmask on all aliases it will cause it to try to add the same route multiple times causing the error you saw. Greetings Christian -- Christian Kratzer ck@cksoft.de CK Software GmbH http://www.cksoft.de/ Phone: +49 7452 889 135 Fax: +49 7452 889 136