From owner-freebsd-questions Sat Jun 22 13:03:22 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA05754 for questions-outgoing; Sat, 22 Jun 1996 13:03:22 -0700 (PDT) Received: from mailhub.aros.net (mailhub.aros.net [205.164.111.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id NAA05745 for ; Sat, 22 Jun 1996 13:03:18 -0700 (PDT) Received: from terra.aros.net (terra.aros.net [205.164.111.10]) by mailhub.aros.net (8.7.5/Unknown) with ESMTP id OAA18965 for ; Sat, 22 Jun 1996 14:46:48 -0600 (MDT) Received: (from angio@localhost) by terra.aros.net (8.7.5/8.6.12) id OAA00041 for questions@freebsd.org; Sat, 22 Jun 1996 14:03:15 -0600 From: Dave Andersen Message-Id: <199606222003.OAA00041@terra.aros.net> Subject: ifconfig delete question. To: questions@freebsd.org Date: Sat, 22 Jun 1996 14:03:15 -0600 (MDT) X-Mailer: ELM [version 2.4 PL25 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Is there an easy way to delete all aliases on an interface under -stable (and not nuke the main IP address)? Currently, you can do: for (the number of aliases + 1) ifconfig delete which will sequentially delete all aliases and addresses on the interface, but I'd rather do something that doesn't actually delete the primary interface address as well. I know that under -current, you can con it in to listing all interfaces, but is there something that can be done under -stable? (The problem with deleting them all is that with tcp_keepalives enabled, oftentimes the command will hang after the primary interface has been deleted, and the command will terminate. Yes, you can nohup it, but it's an icky workaround. -Dave -- angio@aros.net Complete virtual hosting and business-oriented system administration Internet services. (WWW, FTP, email) http://www.aros.net/ http://www.aros.net/about/virtual "There are only two industries that refer to their customers as 'users'."