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


--- Jason Drage <jasond@ibsglobalweb.com> wrote:

> > # vserver vserver1 exec nano /etc/vservers/vserver1/interfaces/0/ip
> > Only an empty file
> >
> >
> > What shall I enter on this file. TIA
> Sorry, I mean on the host edit the file eg;
> # nano /etc/vservers/vserver1/interfaces/0/ip
> 
> It's contents should just be the ip address you want
> 
> 
> I don't know why you'd want to do this :)
> # vserver vserver1 exec nano /etc/vservers/vserver1/interfaces/0/ip


Hi Jason,


Sorry I made a mistake previously doing those steps on the Guest.



On the Host;
===========

[Host]# nano /etc/vservers/vserver1/interfaces/0/ip
changing
192.168.0.110

to
192.168.0.111


[Host]# nano /etc/vservers/vserver1/interfaces/0/prefix
entering;
24

there.


# vserver vserver1 start
Starting enhanced syslogd: rsyslogd.
Starting periodic command scheduler: crond.


# vserver vserver1 exec ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0e:a6:f9:a3:5b
          inet addr:192.168.0.111  Bcast:192.168.0.255 
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2435 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2282 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2240299 (2.1 MiB)  TX bytes:412785 (403.1 KiB)
          Interrupt:50 Base address:0xe000


server1:/home/satimis# vserver vserver1 exec ping -c3 yahoo.com
PING yahoo.com (206.190.60.37) 56(84) bytes of data.
64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=1
ttl=51 time=304 ms
64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=2
ttl=51 time=299 ms
64 bytes from w2.rc.vip.re4.yahoo.com (206.190.60.37): icmp_seq=3
ttl=51 time=297 ms

--- yahoo.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 297.220/300.500/304.843/3.201 ms


Thanks


B.R.
Stephen


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