Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Oct 2007 14:33:08 +0300
From:      Alexey Karguine <alexey.karguine@gmail.com>
To:        freebsd@dreamchaser.org
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ifconfig -- how to remove address and mask?
Message-ID:  <F46182BB-AFAB-4841-A4E4-33B43CFAB97C@gmail.com>
In-Reply-To: <47255E38.9020406@dreamchaser.org>
References:  <47255E38.9020406@dreamchaser.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F46182BB-AFAB-4841-A4E4-33B43CFAB97C>