[LARTC] ip address delete bug?

Carl-Daniel Hailfinger c-d.hailfinger.devel.2005 at gmx.net
Tue Oct 4 21:11:53 CEST 2005


Hi,

Peter Surda schrieb:
> On Mon, 03 Oct 2005 19:55:09 +0200 Carl-Daniel Hailfinger
> <c-d.hailfinger.devel.2005 at gmx.net> wrote:
> 
> 
>>it seems that "ip address delete" will delete all addresses of the same
>>class on an interface if it is ordered to only delete the first one:
> 
> Incidentally I encountered similar behavior with kernel 2.4 and older iproute
> (20010824 with some patches) a couple of weeks ago, so it's nothing new.

OK, I found out that this is documented behaviour, although the hint is 
not in the man page.

"secondary --- this address is not used when selecting the default 
source address for outgoing packets. An IP address becomes secondary if 
another address within the same prefix (network) already exists. The 
first address within the prefix is primary and is the tag address for 
the group of all the secondary addresses. When the primary address is 
deleted all of the secondaries are purged too."

That means there is no way to change the IP of an interface if the 
prefix and network size stay the same. Are there any plans to fix that?


> Yours sincerely,
> Peter

Regards,
Carl-Daniel


More information about the LARTC mailing list