Subject:: [vserver] Network access problem!
From: songxuefei 47810 <songxuefei@huawei.com>
Date: Fri, 17 Jul 2009 09:40:36 +0800

 Fri, 17 Jul 2009 09:40:36 +0800
-----邮件原件-----
发件人: John A. Sullivan III [mailto:jsullivan@opensourcedevel.com] 
发送时间: 2009年7月16日 18:25
收件人: vserver@list.linux-vserver.org
主题: Re: [vserver] Network access problem!

On Thu, 2009-07-16 at 12:15 +0800, songxuefei 47810 wrote:
> Hello all,
> 
> I build a vserver and give the interface configuration, but the vserver can't connect
to the host. The ping command doesn't work properly. I use the packet capture tools.
It seems that the vserver can't receive the reply messages. The detail interface configuration
information is below:
> 
> Interface configuration:
> 
> echo "eth4" > /etc/vservers/xxx./interfaces/0/dev
> echo "192.168.1.2" > /etc/vservers/xxx/interfaces/0/ip echo "24" > 
> /etc/vservers/xxx/interfaces/0/mask
> 
> The ip address of host os is "192.168.1.1".
> 
> 
> and then I start the vserver xxx, enter the vserver xxx, try to ping the ip address
"192.168.1.2", and the result is below:
> 
> 
> bash-3.2# ping 192.168.1.2
> PING 192.168.1.2 (192.168.1.2 ) 56(84) bytes of data.
> 
> --- 192.168.1.2 ping statistics---
> 6 packets transmitted, 0 received, 100% packet loss, time 5007ms
> 
> 
> 
> I use the packet capture tools, the ping request and reply appeard both, it is so
strange, the result is below:
> 
> No.          Time               Source                      Destination          
   Protocol        Info          
> 1             0.000000       192.168.1.2                 192.168.1.2             
   ICMP            request
> 2             0.000023       192.168.1.2                 192.168.1.2             
   ICMP            reply
> 3             1.008884       192.168.1.2                 192.168.1.2             
   ICMP            request
> 4             1.008902       192.168.1.2                 192.168.1.2             
   ICMP            reply
> 5             2.008589       192.168.1.2                 192.168.1.2             
   ICMP            request
> 6             2.008609       192.168.1.2                 192.168.1.2             
   ICMP            reply
> 7             3.008266       192.168.1.2                 192.168.1.2             
   ICMP            request
> 8             3.008283       192.168.1.2                 192.168.1.2             
   ICMP            reply
> 9             4.007962       192.168.1.2                 192.168.1.2             
   ICMP            request
> 10           4.007983       192.168.1.2                 192.168.1.2              
  ICMP            reply
<snip>
Just off the top of my head, shouldn't echo "24"
> /etc/vservers/xxx/interfaces/0/mask be echo "24"
> /etc/vservers/xxx/interfaces/0/prefix? Take care - John

[sxf]:it is a clerical error. It is not  "mask" but "prefix", so the configuration is:
 echo "24" > 
 /etc/vservers/xxx/interfaces/0/prefix  

thanks for your response! :-)
--
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan@opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society


******************************************************************************************
 This email and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of
the information contained here in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended recipient(s)
is prohibited. If you receive this email in error, please notify the sender by phone
or email
 immediately and delete it!
 *****************************************************************************************