How to reinitialize an interface

Bruce M. Simpson bms at FreeBSD.org
Fri Feb 22 02:22:54 UTC 2008


Paul Schmehl wrote:
> --On Thursday, February 21, 2008 11:41:05 -0800 Tony Coon 
> <coont at mac.com> wrote:
>
>>
>> I am looking for a way to flush IP addresses, particularly IPv6, from an
>> interface and have it repeat the initialization process that the 
>> interface
>> goes through on boot, including IPv6  autoconfig.  The "service network
>> restart" in Linux seems to do this.
>
> /etc/rc.d/netif restart

...none of which will completely blow away the IPv6 stack state, which 
seems to be what the querent wants. Some refactoring is needed in the 
kernel to support this. IPv4 has the same problem, there's no way to 
administratively blow away certain structures and reinitialize them.

later
BMS


More information about the freebsd-net mailing list