ifconfig -- how to remove address and mask?

Alexey Karguine alexey.karguine at gmail.com
Tue Oct 30 04:57:23 PDT 2007

On 29.10.2007, at 7:14, freebsd at 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 -alias

It will remove address from interface fxp0.

More information about the freebsd-questions mailing list