From owner-freebsd-questions Tue Jun 18 8:37:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.eagle.ca (mail2.eagle.ca [209.167.16.30]) by hub.freebsd.org (Postfix) with ESMTP id AE42037B400 for ; Tue, 18 Jun 2002 08:37:41 -0700 (PDT) Received: from afi (staff.eagle.ca [209.167.16.15]) by mail2.eagle.ca (8.11.3/8.11.3) with SMTP id g5IFZdi44259; Tue, 18 Jun 2002 11:35:39 -0400 (EDT) (envelope-from lists@brenius.com) Message-ID: <002c01c216de$10c2fc40$7b01a8c0@afi> From: To: "Fernando Gleiser" Cc: References: <20020618120508.X66694-100000@localhost> Subject: Re: How to remove multiple IP's off NIC Date: Tue, 18 Jun 2002 11:37:33 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 How would this compare to editing the rc.conf file? I just got a suggestion to do this, but I am not sure of the differences. Thanks. ----- Original Message ----- From: "Fernando Gleiser" To: Cc: Sent: Tuesday, June 18, 2002 11:09 AM Subject: Re: How to remove multiple IP's off NIC > 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