From owner-freebsd-questions@FreeBSD.ORG Tue Oct 30 11:57:23 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 C402216A421 for ; Tue, 30 Oct 2007 11:57:23 +0000 (UTC) (envelope-from alexey.karguine@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 5395B13C4A3 for ; Tue, 30 Oct 2007 11:57:22 +0000 (UTC) (envelope-from alexey.karguine@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1492087nfb for ; Tue, 30 Oct 2007 04:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=20KgNsRQjCV8Qp4kJPai49d25wAolGuDcdiJDCvrtr4=; b=DUecZL03HteILE5g0Br6Qd3EBWGqDtkHU0HyOOhSRN9Bd+jtkzWY6LGwIQtubqw1UKg7ORc0PZE3ozkWMz7KteoYGs4buCHi9EoFMHzToj05B43YYcGA/K5n+hC8AniI9SzbmIDaxQvFiLw+Uv2Ytm45vg6Sswh2TRe2jAbR0gA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:cc:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; b=hrnEEpDucq6M0UDXu4ffdgWywRmDTTULl38b1pllMUGxbEcdwRNqBUSmJ3TKOD6ecyS9oHwWzRkzPYBqZyiEbuteBKx8cY5FJyOxh959SIOaMyr8HmOIqB7GKDKQLm7Pt2pUJ85xI1n+9y24oZCQde48gpjF41bN0uqAO6hp5NQ= Received: by 10.86.4.2 with SMTP id 2mr5609056fgd.1193743993696; Tue, 30 Oct 2007 04:33:13 -0700 (PDT) Received: from 89.222.133.59.global-net.ru ( [89.222.133.59]) by mx.google.com with ESMTPS id e8sm16966062muf.2007.10.30.04.33.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 30 Oct 2007 04:33:12 -0700 (PDT) Message-Id: From: Alexey Karguine To: freebsd@dreamchaser.org In-Reply-To: <47255E38.9020406@dreamchaser.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Tue, 30 Oct 2007 14:33:08 +0300 References: <47255E38.9020406@dreamchaser.org> X-Mailer: Apple Mail (2.912) 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 11:57:23 -0000 On 29.10.2007, at 7:14, 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... You can use something like that: ifconfig fxp0 inet 10.10.10.1/24 -alias It will remove address 10.10.10.1/24 from interface fxp0.