#563730 say how to remove IPv4 addresses

Package:
net-tools
Source:
net-tools
Description:
NET-3 networking toolkit
Submitter:
Date:
2010-01-18 20:42:20 UTC
Severity:
wishlist
#563730#5
Date:
2010-01-04 20:27:47 UTC
From:
To:
We see
       del addr/prefixlen
              Remove an IPv6 address from an interface.
However, no mention is made of how to remove an IPv4 address.
Trial and error found a way:

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0c:76:7d:c6:7d
          inet addr:192.168.44.1  Bcast:192.168.44.255  Mask:255.255.255.0
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:30840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19533 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26408130 (25.1 MiB)  TX bytes:1951038 (1.8 MiB)
          Interrupt:18 Base address:0xe000

# ifconfig eth0 0 #works, but side effects: UP, and creates an inet6 address:
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0c:76:7d:c6:7d
          inet6 addr: fe80::20c:76ff:fe7d:c67d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:30840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19536 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26408130 (25.1 MiB)  TX bytes:1951276 (1.8 MiB)
          Interrupt:18 Base address:0xe000

# ifconfig eth0 down
# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0c:76:7d:c6:7d
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:30840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19539 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:26408130 (25.1 MiB)  TX bytes:1951506 (1.8 MiB)
          Interrupt:18 Base address:0xe000

#563730#8
Date:
2010-01-13 16:15:49 UTC
From:
To:
ip addr del 192.168.44.1/24 dev eth0

(It really needs iproute2.)

#563730#13
Date:
2010-01-18 01:14:27 UTC
From:
To:
JE> ip addr del 192.168.44.1/24 dev eth0
JE> (It really needs iproute2.)
That's nice however I'm talking about the ifconfig man page, not the ip
man page.

Indeed some mention of the corresponding IPv4 pair for
       add addr/prefixlen
              Add an IPv6 address to an interface.

       del addr/prefixlen
              Remove an IPv6 address from an interface.

should be made, even "if it is obvious" somewhere.