Date: Sat, 25 May 2002 09:10:02 -0700 (PDT) From: Ruslan Ermilov <ru@FreeBSD.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/38533: 'ifconfig ifname down delete' does not deletes aliases Message-ID: <200205251610.g4PGA2J06752@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/38533; it has been noted by GNATS. From: Ruslan Ermilov <ru@FreeBSD.org> To: Eugene Grosbein <eugen@grosbein.pp.ru> Cc: bug-followup@FreeBSD.org Subject: Re: bin/38533: 'ifconfig ifname down delete' does not deletes aliases Date: Sat, 25 May 2002 19:04:05 +0300 --NDin8bjvE/0mNLFQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 25, 2002 at 11:50:18PM +0800, Eugene Grosbein wrote: > Ruslan Ermilov wrote: >=20 > > > > > I have an interface with primary and aliased addresses > > > > > and try to clear them all and take interface down. > > > > > So I type > > > > > > > > > > ifconfig fxp0 down delete > > > > > > > > > > And I see that primary address (with correct netmask) is removed > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > > > > but alias (with netmask 255.255.255.255) is still here. > > > > > > > > > It would be very sad if it did. > > > > > > > > `delete' is just another alias for `-alias'. It deletes the address > > > > specified, or the first address (in this family) if no address was > > > > specified, of the interface. > > > > > > > > This PR can be closed. > > > > > > Then it should preserve original netmask, I guess. > > > > > Umm, preserve the original netmask of _what_? >=20 > Of primary IP being removed. >=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. > > > Well, if 'ifconfig down delete' doesn't deletes all interfaces' IP, > > > if there an easy way to perform this task? > > > If not, I think this command is good candidate. > > > > > ifconfig rl0 inet | tail +2 | xargs -n1 ifconfig rl0 delete >=20 > Thanks. I'd like to have some more intuitive for non-script work :-) >=20 There is no ioctl(2) to delete all addresses. 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 --NDin8bjvE/0mNLFQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE877X1Ukv4P6juNwoRAooHAJ9HlGdDej0wP3UhECs9VvuVicoIvQCfVU+V QLDkxtL7Mi0evJO/D2DVlAo= =dhUn -----END PGP SIGNATURE----- --NDin8bjvE/0mNLFQ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205251610.g4PGA2J06752>