How to reinitialize an interface




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@xxxxxxx

"No amount of careful planning will ever replace dumb luck"

_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: IPV6INIT=no, but does anyway on local network
    ... After FC8 System, there is no /etc/modprobe.conf (default hand by ... alias scsi_hostadapter1 sata_sil ... The Linux kernel automatically assigns a link-local IPv6 ... To get rid of the IPv6 address on a particular interface, ...
    (Fedora)
  • Re: Merging rc.d/network_ipv6 into rc.d/netif
    ... # Start/Stop IPv6 only on interface rl0 ... In order to differentiate between v4 and v6 configuration directives some ... starting WPA via the WPA keyword should not work in any address specific ... off, then try to start IPv6 on an interface later on, it doesn't ...
    (freebsd-net)
  • Re: IPV6INIT=no, but does anyway on local network
    ... The Linux kernel automatically assigns a link-local IPv6 ... To get rid of the IPv6 address on a particular interface, ... by the networking scripts. ...
    (Fedora)
  • Re: Merging rc.d/network_ipv6 into rc.d/netif
    ... # Start/Stop IPv6 only on interface rl0 ... In order to differentiate between v4 and v6 configuration directives some ... off, then try to start IPv6 on an interface later on, it doesn't ...
    (freebsd-net)
  • Re: IPV6 - cannot manually add 6to4 address with hexa characters
    ... However DYNAMIC IPV6 6to4 addresses with Hex characters ... Interface 4: NetGear ... Manual Preferred infinite infinite ... >Use the netsh IPv6 context to add addresses to interfaces. ...
    (microsoft.public.windowsxp.network_web)