Subject: Re: [vserver] Guest - problem on networking and exit
From: Stephen Liu <satimis@yahoo.com>
Date: Thu, 28 Aug 2008 11:32:40 +0800 (CST)


--- Nicolas Cadou <ncadou@cobi.net> wrote:

> Le August 27, 2008, Stephen Liu a écrit&#116;&#65533;:
> > # vserver vserver1 exec ifconfig
> > eth0      Link encap:Ethernet  HWaddr 00:0e:a6:f9:a3:5b
> >           inet addr:192.168.1.110  Bcast:0.0.0.0 
> Mask:255.255.255.255
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:36328 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:24393 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:1000
> >           RX bytes:53116428 (50.6 MiB)  TX bytes:1770151 (1.6 MiB)
> >           Interrupt:50 Base address:0xe000
> >
> >
> > # vserver vserver1 exec ping -c3 yahoo.com
> > ping: unknown host yahoo.com
> 
> I just noticed, you have a netmask of 255.255.255.255. If this is not
> correct, 
> edit /etc/vservers/vserver1/interfaces/0/prefix and put something
> like "24", 
> depending on the real netmask you need.


Hi Nicolas,


The netmask on /etc/network/interfaces of the Host is "255.255.255.0". 
I haven't set it on the Guest during installation.  I suppose it is
automatically assigned.


# vserver vserver1 exec ls -al /etc/vservers/vserver1/interfaces/0/ ls:
cannot access /etc/vservers/vserver1/interfaces/0/: No such file or
directory


# vserver vserver1 exec cat /etc/vservers/vserver1/interfaces/0/prefix
cat: /etc/vservers/vserver1/interfaces/0/prefix: No such file or
directory


I think the file "prefix" does not exist.  Where can I find a sample to
create it?  Thanks


B.R.
Stephen L


Send instant messages to your online friends http://uk.messenger.yahoo.com