From owner-freebsd-questions@FreeBSD.ORG Thu Mar 20 14:19:00 2008 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 E9588106566C for ; Thu, 20 Mar 2008 14:19:00 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id B51A68FC28 for ; Thu, 20 Mar 2008 14:19:00 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.182.66] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1JcLbf-0005LP-Rz; Thu, 20 Mar 2008 15:18:59 +0100 Message-ID: <47E666CF.2080407@FreeBSD.org> Date: Sun, 23 Mar 2008 15:18:55 +0100 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.12 (X11/20080311) MIME-Version: 1.0 To: spil.oss@gmail.com References: <5fbf03c20803200422o1709e6edmaa24c85634a4b403@mail.gmail.com> In-Reply-To: <5fbf03c20803200422o1709e6edmaa24c85634a4b403@mail.gmail.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-questions@freebsd.org Subject: Re: Removing aliases removes primary 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: Thu, 20 Mar 2008 14:19:01 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Spil Oss wrote: | Dear all, | | Today I removed all aliases on my internal NIC and loopback, which | resulted in losing the primary ip-address. What am I missing! | | # ifconfig xl0 alias 172.17.2.3 delete | # ifconfig xl0 alias 172.17.2.4 delete | # ifconfig xl0 alias 172.17.2.5 delete | # ifconfig lo0 alias 127.0.0.2 delete | # ifconfig lo0 alias 127.0.0.3 delete What you are doing here is: 1) you create an alias (which already exists) with the 'alias' argument 2) you remove an alias which the 'delete' argument. Since you don't specify which alias to be removed, the lowest IP number is removed. In your case, the lowest IP number happens to be your primary :-) You may want to use the '-alias' command line option to remove an alias: # ifconfig xl0 -alias 172.17.2.3 | Kind regards, Hope this helps, | Spil. - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEAREKAAYFAkfmZs4ACgkQwMJqmJVx945NsgCg4jfR8JuKsOnGqirAmclnGM80 8Y0AoKeK+mWCGtkniIko2rJlF8UX0EDI =vMXT -----END PGP SIGNATURE-----