From: Jacques Gelinas (jack_at_solucorp.qc.ca)
Date: Fri 31 Oct 2003 - 18:02:26 GMT
On Fri, 31 Oct 2003 10:01:01 -0500, =?iso-8859-1?q?Asbj=F8rn=20Sannes?= wrote
> On Thursday 30 October 2003 17:43, Jacques Gelinas wrote:
>
> > Whenever the kernel drop a "main" IP aliases, all the related (secondary)
> > IP aliases (same network) are also dropped.
>
> A quick workaround would be to put up a dummy alias first maybe? I myself
> don't remove the aliases when the vserver is down (this may or may not be a
> workable solution for everyone, but it works for me because the vservers I
> run are up most of the time.)
If you move a vserver on a new host, you have to turn the IP alias off
and turn it on elsewhere.
Having a dummy alias will use one IP. It has to be the first alias on the same
network. I mean, if you have
ifconfig eth0:0 1.2.3.4
ifconfig eth0:1 192.168.1.1 netmask 255.255.255.0
ifconfig eth0:2 192.168.2.1 netmask 255.255.255.0
ifconfig eth0:3 192.168.1.2 netmask 255.255.255.0
If you delete eth0:1, then eth0:3 goes down as well. eth0:2 (on a different
IP network and eth0:0 are not affected).
So if you want a dummy first IP alias, it has to be on the same network
(192.168.1.0/255.255.255.0). So it has to be a real/useful IP.
---------------------------------------------------------
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