About this list Date view Thread view Subject view Author view Attachment view

From: Jacques Gelinas (jack_at_solucorp.qc.ca)
Date: Fri 31 Oct 2003 - 17:43:14 GMT


On Thu, 30 Oct 2003 20:44:02 -0500, Herbert Poetzl wrote
> On Thu, Oct 30, 2003 at 11:43:34AM -0500, Jacques Gelinas wrote:

> > Another solution would be to change the kernel. For example, when we delete the
> > main IP alias of a network, instead of deleting the other, we remove the SECONDARY
> > flag from the first other IP alias in the list.
>
> IMHO the best solution would be to use iproute2's ip
> utility to setup addr and link info, this way much
> more can be done, and after all it's the default interface
> for 2.4 kernels, although not many use it ...

The ip command uses the same kernel interface as ifconfig to setup IP aliases.
The SECONDARY flag can't be touched using the kernel interface.
So the command will produce the same problem.

While the ip command do more, especially on the routing side, it does the
same thing on the IP aliases side.

Should we change the behavior of the kernel here ? I mean, if you delete
the first IP alias of a network (not the first IP alias of a device), it deletes
all other aliases on the same network (other IP aliases on the same device but
with different network are not affected).

One solution would be to turn the first SECONDARY IP alias into a Primary (rempve
the IFA_F_SECONDARY flag).

I have found a lot a threads about this behavior but so far, I have not seen
the logic for this behavior. I mean, no one seemed to argue that 'it has to be
like this because x,y,z'

---------------------------------------------------------
Jacques Gelinas <jack_at_solucorp.qc.ca>
vserver: run general purpose virtual servers on one box, full speed!
http://www.solucorp.qc.ca/miscprj/s_context.hc
_______________________________________________
Vserver mailing list
Vserver_at_www.solucorp.qc.ca
http://www.solucorp.qc.ca/mailman/listinfo/vserver
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 31 Oct 2003 - 17:54:45 GMT by hypermail 2.1.3