ifconfig -- how to remove address and mask?

Erik Osterholm freebsd-lists-erik at erikosterholm.org
Tue Oct 30 07:17:29 PDT 2007


On Sun, Oct 28, 2007 at 09:14:48PM -0700, 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...
> 
> Thanks,
> 
> Gary

Might /etc/rc.d/netif restart resolve this, too?

Erik


More information about the freebsd-questions mailing list