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

From: Herbert Poetzl (herbert_at_13thfloor.at)
Date: Wed 29 Jun 2005 - 01:12:27 BST


On Tue, Jun 28, 2005 at 03:17:54PM -0400, Frank Crowder wrote:
> Your crystal ball is intact. Vserver names were dmain1, dmain2, and
> dmain3. Server name was dmain.
>
> ifconfig yields eth0:dmai with the correct ip addresses for dmain,
> dmain2 and dmain3. Changing the vserver names to vs01, vs02, vs03
> corrected the problem.

hmm, interesting, both are naming schemes which we
probably didn't anticipate ...

anyway here some infos/clarifications:

 - using the legacy setup (1.2x and alias mode for 2.x)
   the alias will be named ethX:<name> and each additional
   interface alias will get a number added (e.g. ethX:<name>1)

 - using the new style config you will not get any alias
   and the ips will 'just' be added to the interface
   (you can see them with ip addr ls)

the name displayed with ifconfig is only half the truth
as it display only the first 9 characters of the interface
or alias name, but the kernel stores a total of 15 or so
(so checking with 'ip addr ls' might give a better insight)

best,
Herbert

> Many thanks,
>
> Frank Crowder
>
> On Tue, 28 Jun 2005 00:13:14 +0200 Björn rSteinbrink wrote
>
> From: Bj?rn Steinbrink <B.Steinbrink_at_gmx.de>
>
> Subject: Re: [Vserver] can not ping 1st vserver when 3 vservers exist.
>
> To: vserver_at_list.linux-vserver.org
>
> Message-ID: <20050627221314.GA15145_at_doener.homenet>
>
> Content-Type: text/plain; charset=iso-8859-1
>
> Hi,
>
> On 2005.06.27 17:40:17 -0400, Frank Crowder wrote:
>
> > I have 3 vservers. I can ping vserver 2 and 3, but not vserver 1. If
> I
>
> > restart vserver1, I can ping vserver1 and vserver3. Any suggestions
>
> > are very appreciated.
>
> I guess you're hitting the primary/secondary network issue, but as you
> didn't provide much information (kernel/tools version, network
> configuration of the vservers) and my crystal ball is broken, I can't
> tell anything else ;)
>
> For the primary/secondary stuff:
>
> In Linux, for each subnet there is one primary address. If this
> address is removed, all secondaries are removed, too. Example, I
> assume that there are no addresses from 10.0.0.0/8 configured
>
> yet:
>
> ifconfig eth0:0 10.0.0.1 <-- becomes primary
>
> ifconfig eth0:1 10.0.0.2 <-- becomes secondary
>
> ifconfig eth0:2 10.0.0.3 <-- becomes secondary
>
> ifconfig eth0:3 10.0.0.4 <-- becomes secondary
>
> ifconfig eth0:2 down --- eth0:2 is gone now
>
> ifconfig eht0:0 down --- eth0:0 _and_ eth0:1 and eth0:3 are gone now
>
> So if you have addresses from the same subnet in different vservers,
> and of the vservers 'owns' the primary address, stopping/restarting
> that vserver will causes the other vserver to lose their addresses.
>
> Work-Arounds:
>
> Either reserve an ip address in the used subnets that is statically
> configured on the host and being the primary one (i.e. the first
> address from that subnet), so the primary address will never be
> removed. Or use /32 addresses, that way, the subnet contains only a
> single address and thus there can't be any secondaries.
>
> HTH
>
> Björn

> _______________________________________________
> Vserver mailing list
> Vserver_at_list.linux-vserver.org
> http://list.linux-vserver.org/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 Wed 29 Jun 2005 - 01:12:52 BST by hypermail 2.1.3