From owner-freebsd-questions@FreeBSD.ORG Tue Sep 1 15:42:32 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CF7E1065670 for ; Tue, 1 Sep 2009 15:42:32 +0000 (UTC) (envelope-from nvass9573@gmx.com) Received: from mail.gmx.com (unknown [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id AFE468FC1A for ; Tue, 1 Sep 2009 15:42:31 +0000 (UTC) Received: (qmail invoked by alias); 01 Sep 2009 15:42:29 -0000 Received: from unknown (EHLO [169.254.0.100]) [91.140.101.228] by mail.gmx.com (mp-eu004) with SMTP; 01 Sep 2009 17:42:29 +0200 X-Authenticated: #46156728 X-Provags-ID: V01U2FsdGVkX1+sP4lNyDWsE7uqLJPmnH+9plL1SG6SU5/+XOjT5u MohDoyhpzRXAqk Message-ID: <4A9D40D3.3060308@gmx.com> Date: Tue, 01 Sep 2009 18:42:11 +0300 From: Nikos Vassiliadis User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Adam Vande More References: <4f760c6a0909010620u691e4e0et9e5d624443cc2a8f@mail.gmail.com> <6201873e0909010749m359888eby25e8d3aae9e1d36d@mail.gmail.com> In-Reply-To: <6201873e0909010749m359888eby25e8d3aae9e1d36d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.66 Cc: freebsd-questions@freebsd.org, claudiu vasadi Subject: Re: ifconfig -alias - removed wrong ip ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2009 15:42:32 -0000 Adam Vande More wrote: > On Tue, Sep 1, 2009 at 8:20 AM, claudiu vasadi wrote: >> 1.) Is it normal for the ifconfig rl0 -alias to remove the "normal" IP and >> not the alias one ? (I think that by this syntax it could be right but the >> parameter "-alias" is specified and the OS should know to remove the alias >> IP and not the normal IP) >> > Yes Yes, there is no difference between "normal" and alias IP. alias is the keyword used by the ifconfig utility to add an other IP address to an interface. All IP addresses bound to an interface are equivalent, I mean there is any hierarchy of importance of the addresses. "ifconfig int0 -alias" just happens to remove the first IP address. You really should use "ifconfig int0 delete 192.168.0.1" >> 2) I dnt really understand why am I not able to connect to the second >> (alias) ip? It seems that somehow it's dependant to the "normal" one >> > Yup, you need to re-init networking to regain access. Most probably, you rendered the default gateway unreachable with the removal of the IP. Nikos