linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* issue: deleting one IP alias deletes all
@ 2001-10-23 17:54 Tim Hockin
  2001-10-24 11:36 ` Kurt Roeckx
  2001-10-25 16:30 ` Matthew G. Marsh
  0 siblings, 2 replies; 22+ messages in thread
From: Tim Hockin @ 2001-10-23 17:54 UTC (permalink / raw)
  To: Linux Kernel Mailing List

So we've noticed, and taken issue with this behavior.

If you have several IP aliases on an interface (eth0:0, eth0:1, eth0:2) you
get inconsistent behavior when downing them.

* if I 'ifconfig down' eth0:1, I am left with eth0:0 and eth0:2
* if I 'ifconfig down' eth0:0, eth0:1 and eth0:2 go away, too

I assert that this should not happen.  I have a simple patch to fix this
behavior, but I want to know a few things.

* Is this supposed to happen? Why?
* Is it correct that both the real interface and the first alias are marked
as primary (! IFA_F_SECONDARY), while all other aliases are secondary?  It
seems to me that ALL ALIASES should be secondary.  Is this wrong? Why?

Can anyone fill me in?

Thanks
Tim
-- 
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: issue: deleting one IP alias deletes all
@ 2001-10-24  1:01 Julian Anastasov
  2001-10-24  5:28 ` David Ford
  0 siblings, 1 reply; 22+ messages in thread
From: Julian Anastasov @ 2001-10-24  1:01 UTC (permalink / raw)
  To: Tim Hockin; +Cc: linux-kernel


	Hello,

Tim Hockin wrote:

> If you have several IP aliases on an interface (eth0:0, eth0:1, eth0:2) you
> get inconsistent behavior when downing them.
>
> * if I 'ifconfig down' eth0:1, I am left with eth0:0 and eth0:2
> * if I 'ifconfig down' eth0:0, eth0:1 and eth0:2 go away, too
>
> I assert that this should not happen.  I have a simple patch to fix this
> behavior, but I want to know a few things.
>
> * Is this supposed to happen? Why?
> * Is it correct that both the real interface and the first alias are marked
> as primary (! IFA_F_SECONDARY), while all other aliases are secondary?  It

	If you look again into the sources you can see that
secondary addresses are those that are attached when there is
already IP address from the same subnet. The aliases don't play
here nor their number. The analyze points that the semantic
covers the selection of source addresses (probably when you don't
use preferred source address in your routes) and in some way they
look as an IP address lookup and kernel routes handling
optimizations. The other thing that I don't know is that may be
there is some compatibility reasons for such secondary flag.

> seems to me that ALL ALIASES should be secondary.  Is this wrong? Why?

	IMO, to keep the semantic of "attaching or detaching an IP
address" clear and independent, all addresses should be primary
because it is hard to keep correct setup when it is dynamicaly
changed. There is already mechanism (the scope) to make one address
"secondary" in the source address selection mechanism or even there
is a preferred source to make it primary. This is my opinion but
may be I'm missing some other usage. At least, the current handling
looks very dangerous.

Regards

--
Julian Anastasov <ja@ssi.bg>


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2001-10-27 17:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-23 17:54 issue: deleting one IP alias deletes all Tim Hockin
2001-10-24 11:36 ` Kurt Roeckx
2001-10-24 12:00   ` Kurt Roeckx
2001-10-25 16:30 ` Matthew G. Marsh
2001-10-26 19:51   ` Michal Jaegermann
2001-10-24  1:01 Julian Anastasov
2001-10-24  5:28 ` David Ford
2001-10-24  6:18   ` Petr Titera
2001-10-24  6:52     ` David Ford
2001-10-24 12:48     ` Wilson
2001-10-25 16:34     ` Matthew G. Marsh
2001-10-24  8:19   ` Julian Anastasov
2001-10-24 14:02   ` Christopher Friesen
2001-10-24 15:34     ` Tim Hockin
2001-10-24 17:14       ` Christopher Friesen
2001-10-24 20:36     ` David Ford
2001-10-24 20:54       ` Tim Hockin
2001-10-27 17:26         ` kuznet
2001-10-25 17:40       ` Matthew G. Marsh
2001-10-25 19:56         ` David S. Miller
2001-10-25 20:01         ` Tim Hockin
2001-10-25 20:29           ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).