From owner-freebsd-net@FreeBSD.ORG Fri Dec 12 18:47:26 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DA49106564A for ; Fri, 12 Dec 2008 18:47:26 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.freebsd.org (Postfix) with ESMTP id 30C868FC17 for ; Fri, 12 Dec 2008 18:47:25 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (4oilrprus0bihkl5@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id mBCIClxO064421; Fri, 12 Dec 2008 10:12:47 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id mBCICltC064420; Fri, 12 Dec 2008 10:12:47 -0800 (PST) (envelope-from jmg) Date: Fri, 12 Dec 2008 10:12:46 -0800 From: John-Mark Gurney To: Vyacheslav Bocharov Message-ID: <20081212181246.GG34842@funkthat.com> Mail-Followup-To: Vyacheslav Bocharov , freebsd-net@freebsd.org References: <80861bfa0812110629h70527769w5e29f9acd7d0a5cd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80861bfa0812110629h70527769w5e29f9acd7d0a5cd@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (hydrogen.funkthat.com [127.0.0.1]); Fri, 12 Dec 2008 10:12:47 -0800 (PST) Cc: freebsd-net@freebsd.org Subject: Re: strange problem with ifconfig alias X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2008 18:47:26 -0000 Vyacheslav Bocharov wrote this message on Thu, Dec 11, 2008 at 16:29 +0200: > I have strange problem with ifconfig: I can't add ip address to interface: Have you followed the instructions in the handbook: http://www.freebsd.org/doc/en/books/handbook/configtuning-virtual-hosts.html > root@chip# ifconfig em1 alias 195.3.245.xx/30 > ifconfig: ioctl (SIOCAIFADDR): File exists If there is already an ip in that range on the interface, you need to use: ifconfig em1 alias 195.3.245.xx/32 Next time include ifconfig -a so we know what addresses and interfaces you have. Makes diagnostics easier. P.S. This question is better targeted to -questions. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."