How to reinitialize an interface
Julian Elischer
julian at elischer.org
Thu Feb 21 20:17:07 UTC 2008
Tony Coon 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.
>
> cheers,
> Tony
>
> ---
> Tony Coon
> coont at mac.com
>
> "No amount of careful planning will ever replace dumb luck"
>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
ifconfig {name} down delete
ifconfig {name} ipaddress/width up
Don't forget that you MAY need to redo any routes that used this
isterface as they will have been removed.
route add {dest/width} {gateway}
More information about the freebsd-net
mailing list