Wed, 27 Aug 2008 23:42:53 -0400 On Wednesday 27 August 2008, Stephen Liu wrote: > > --- Nicolas Cadou <ncadou@cobi.net> wrote: > > > Le August 27, 2008, Stephen Liu a écritt�: > > > # 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 > typically the install wants a /24 rather than the entire netmask of 255.255.255.0. simply create the txt file called prefix and place as the first 2 characters the number 24 and save it look at the entire /0 directory and be sure you have an ip file with the correct ip in it and nothing else, and a dev file with your ethx. you can optionally add a name file with up to 4 or 5 chars uniquely identifying this interface, such as vs1 and then when you do an ip listing you will see if you use eth0, eth0:vs1 and then the rest of the report. > > B.R. > Stephen L > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > -- Chuck