Date: Sat, 25 May 2002 09:00:10 -0700 (PDT) From: Eugene Grosbein <eugen@grosbein.pp.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/38533: 'ifconfig ifname down delete' does not deletes aliases Message-ID: <200205251600.g4PG0AA02017@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: Eugene Grosbein <eugen@grosbein.pp.ru> To: Ruslan Ermilov <ru@FreeBSD.org> Cc: bug-followup@FreeBSD.org Subject: Re: bin/38533: 'ifconfig ifname down delete' does not deletes aliases Date: Sat, 25 May 2002 23:50:18 +0800 Ruslan Ermilov wrote: > > > > 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_? Of primary IP being removed. > > 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 Thanks. I'd like to have some more intuitive for non-script work :-) Eugene 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?200205251600.g4PG0AA02017>