How to reinitialize an interface

Paul Schmehl pauls at utdallas.edu
Thu Feb 21 20:50:09 UTC 2008


--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.
>
> I have tried network_ipv6, netif, ifconfig and a few odd and ends from
> Google, but no joy so far.
>
> This is just for testing,  rebooting between test cases is getting a bit
> tedious.  freeBSD is 6.2.
>

/etc/rc.d/netif restart

-- 
Paul Schmehl (pauls at utdallas.edu)
Senior Information Security Analyst
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/



More information about the freebsd-net mailing list