next up previous contents
Next: ip neighbour Up: ip address flush Previous: Statistics:   Contents


Delete all the addresses from the private network
netadm@amber:~ # ip -s -s a f to 10/8
2: dummy    inet brd scope global dummy
3: eth0    inet brd scope global eth0
4: eth1    inet brd scope global eth1

*** Round 1, deleting 3 addresses ***
*** Flush is complete after 1 round ***
netadm@amber:~ #
Another instructive example is disabling IP on all the Ethernets:
netadm@amber:~ # ip -4 addr flush label "eth*"
And the last example shows how to flush all the IPv6 addresses acquired by the host from stateless address autoconfiguration after you enabled forwarding or disabled autoconfiguration.
netadm@amber:~ # ip -6 addr flush dynamic

Martin A. Brown 2003-03-14