Re: [vserver] Network access problem!

From: John A. Sullivan III <jsullivan_at_opensourcedevel.com>
Date: Thu 16 Jul 2009 - 11:24:45 BST
Message-Id: <1247739885.6428.1.camel@jaspav.missionsit.net.missionsit.net>

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

-- 
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
Received on Thu Jul 16 11:22:03 2009
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 16 Jul 2009 - 11:22:05 BST by hypermail 2.1.8