From owner-freebsd-questions@FreeBSD.ORG Tue Oct 30 03:32:09 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8D2316A41A for ; Tue, 30 Oct 2007 03:32:09 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (12-32-44-142.static.blackfoot.net [12.32.44.142]) by mx1.freebsd.org (Postfix) with ESMTP id 4C23113C447 for ; Tue, 30 Oct 2007 03:32:09 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from [12.32.36.74] (freshstart.dreamchaser.org. [12.32.36.74]) by nightmare.dreamchaser.org (8.13.6/8.13.6) with ESMTP id l9U3VjMh006490; Mon, 29 Oct 2007 21:31:45 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: <4726A5A1.2090400@dreamchaser.org> Date: Mon, 29 Oct 2007 20:31:45 -0700 From: freebsd@dreamchaser.org User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Yuri Pankov References: <47255E38.9020406@dreamchaser.org> <1193710374.1212.8.camel@darklight.org.ru> In-Reply-To: <1193710374.1212.8.camel@darklight.org.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (nightmare.dreamchaser.org [12.32.36.65]); Mon, 29 Oct 2007 21:31:46 -0600 (MDT) Cc: freebsd-questions@freebsd.org Subject: Re: ifconfig -- how to remove address and mask? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 03:32:09 -0000 I tried delete, but it only works for *additional* ip addresses added using the alias command, not the original, primary one. I can't remember the error message. Yuri Pankov wrote: > On Sun, 2007-10-28 at 21:14 -0700, freebsd@dreamchaser.org wrote: >> running 6.1, >> >> Is there a way to bring an interface down and remove the ipaddr and mask? >> I've tried ifconfig destroy with no effect, and I'm getting tired of >> twiddling rc.conf and rebooting... >> >> The problem arises when testing a new configuration where an existing >> interface has an assigned ip addr, and is then changed to be used with >> pppoe. The routine tables get really confused... ... > Try ifconfig delete.