From owner-freebsd-bugs Sat May 25 9:50:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9717537B405 for ; Sat, 25 May 2002 09:50:03 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4PGo3D11030; Sat, 25 May 2002 09:50:03 -0700 (PDT) (envelope-from gnats) Date: Sat, 25 May 2002 09:50:03 -0700 (PDT) Message-Id: <200205251650.g4PGo3D11030@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: bin/38533: 'ifconfig ifname down delete' does not deletes aliases Reply-To: Ruslan Ermilov Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/38533; it has been noted by GNATS. From: Ruslan Ermilov To: Eugene Grosbein Cc: bug-followup@FreeBSD.org Subject: Re: bin/38533: 'ifconfig ifname down delete' does not deletes aliases Date: Sat, 25 May 2002 19:41:29 +0300 --llIrKcgUOe3dCx0c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 26, 2002 at 12:12:11AM +0800, Eugene Grosbein wrote: > Ruslan Ermilov wrote: >=20 > > I don't quite follow, sorry. Suppose you have two IP addresses > > from different networks bound to an interface. If you delete > > one address, it just gets deleted. Nothing else should be > > done. >=20 > Right. But suppose you have two IP addresses from the same network > (second with netmask 255.255.255.255).=20 > If you remove primary one (with correct netmask), you end up > with last IP address and netmask 255.255.255.255 that's seem to be wrong. > I guess right netmask should be preserved. >=20 If you have x.y.z.1/24 and x.y.z.2/32, ifconfig if0 x.y.z.2/32 delete ifconfig if0 x.y.z.2 will do it for you. Anyway, we're diverging from the PR's topic. "delete" works as expected, it just deletes the primary address of an interface (if no specific address is supplied). Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --llIrKcgUOe3dCx0c Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE87765Ukv4P6juNwoRAlgTAJ47Coc7VYkDFzM14tXMcyxLp6WNHwCeKhru V14i1YNzwykESmwzs0u1BcA= =Oml9 -----END PGP SIGNATURE----- --llIrKcgUOe3dCx0c-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message