From owner-freebsd-questions Tue Jun 18 8:11:14 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id EDAE437B410 for ; Tue, 18 Jun 2002 08:11:04 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.11.6/8.11.6) with ESMTP id g5IF94Q66824; Tue, 18 Jun 2002 12:09:05 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Tue, 18 Jun 2002 12:09:04 -0300 (ART) From: Fernando Gleiser X-X-Sender: To: Cc: Subject: Re: How to remove multiple IP's off NIC In-Reply-To: <001201c216d5$b5747ab0$7b01a8c0@afi> Message-ID: <20020618120508.X66694-100000@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 18 Jun 2002 lists@brenius.com wrote: > FreeBSD 4.3R, w/ dozens of IP's that need to be removed from the NIC. > > Easiest way to go about doing this? make a list with the addresses which you need to remove and save it to a file. Then say the magic words: for addr in `cat file`; do ifconfig xl0 delete $addr ; done change xl0 to the name of your interface. Fer > > Thank you > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message