Non-unique IP removal issue

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




I have come across an interesting issue when adding non-unique IPs to an interface. I am not sure this is the right place for this issue but I couldn't find anything online about it. The issue is that "ip addr del" ignores the mask and deletes the first matching IP. I know adding non-unique IP to same ethernet doesn't really make sense, but it is possible via "ip addr add"; so it should be possible to undo.

Here is the step-by-step:
	1. ip addr add 1/32 dev eth2
	2. ip addr add 1/24 dev eth2
	3. ip addr show dev eth2
2: eth2: <BROADCAST,MULTICAST> mtu 68 qdisc pfifo_fast qlen 1000
    ...
    inet 1.0.0.0/32 scope global eth2
    inet 1.0.0.0/24 scope global eth2

	4. ip addr del 1/24 dev eth2
	5. ip addr show dev eth2
2: eth2: <BROADCAST,MULTICAST> mtu 68 qdisc pfifo_fast qlen 1000
    ...
    inet 1.0.0.0/24 scope global eth2

If you compare the first output to the second you will notice that 1/32 was removed. However, if you look at the "ip addr del" command 1/24 was removed not 1/32.

Does anyone know if this is a bug? a known issue? expected behavior? or something only I am seeing?
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux