| Network problem:I cant't ping the VE from HN [message #35101] | 
			Sat, 28 February 2009 08:56   | 
		 
		
			
				
				
				
					
						  
						presidentccj
						 Messages: 1 Registered: February 2009 
						
					 | 
					Junior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hey,there.I'm a very beginnger of OpenVZ. 
Here's what I've done. 
  
# sysctl -p 
net.ipv4.conf.default.rp_filter = 1 
net.ipv4.conf.all.rp_filter = 1 
net.ipv4.ip_forward = 1 
net.ipv4.conf.all.secure_redirects = 1 
net.ipv4.conf.all.send_redirects = 0 
 
 
building a gentoo container 
 
#cd /var/lib/vz/template/cache 
#wget    http://download.openvz.org/contrib/template/precreated/gento o-openvz-x86-2008.11.30.tar.gz 
 
#vzctl create 101 --ostemplate gentoo-openvz-x86-2008.11.30 
#vzctl set 101 --onboot yes --save 
#vzctl set 101 --ipadd 192.168.1.109 --save 
# vzctl set 101 --numothersock 120 --save 
#vzctl set 101 --nameserver 202.106.0.20 --save  
 
 
# uname -a 
Linux debian 2.6.18-openvz-18-53.5d3-686 #1 SMP Sun Jan 11 01:09:09 CET 2009 i686 GNU/Linux 
 
 
#ifconfig 
eth0      Link encap:Ethernet  HWaddr 00:19:21:2a:0e:bb   
          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0 
          UP BROADCAST RUNNING MULTICAST  MTU:576  Metric:1 
          RX packets:35898 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:51093 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000  
          RX bytes:12670935 (12.0 MiB)  TX bytes:5374001 (5.1 MiB) 
          Interrupt:217 Base address:0x4000  
 
lo        Link encap:Local Loopback   
          inet addr:127.0.0.1  Mask:255.0.0.0 
          inet6 addr: ::1/128 Scope:Host 
          UP LOOPBACK RUNNING  MTU:16436  Metric:1 
          RX packets:5184 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:5184 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0  
          RX bytes:292199 (285.3 KiB)  TX bytes:292199 (285.3 KiB) 
 
venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00   
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1 
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0  
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) 
 
# vzlist 
      CTID      NPROC STATUS  IP_ADDR         HOSTNAME                         
       101          2 running 192.168.1.109   gentoo   
 
j# ping 192.168.1.109 
PING 192.168.1.109 (192.168.1.109) 56(84) bytes of data. 
 
--- 192.168.1.109 ping statistics --- 
8 packets transmitted, 0 received, 100% packet loss, time 6999ms 
 
 
 
=========== 
So,I can't ping  192.168.1.109,why? 
 
 
 
Regards. 
 
		
		
		[Updated on: Sat, 28 February 2009 08:57] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 | 
	
		
		
			| Re: Network problem:I cant't ping the VE from HN [message #35156 is a reply to message #35101] | 
			Fri, 06 March 2009 10:29   | 
		 
		
			
				
				
				
					
						  
						maratrus
						 Messages: 1495 Registered: August 2007  Location: Moscow
						
					 | 
					Senior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hi, 
 
please show: 
 
- ip r l (from the HN and from inside the VE) 
- arp -n (from the HN) 
- check firewall rules 
 
please run tcpdump to clarify such behavior. 
 
When pinging your VE from HN run tcpdump on venet0 interface on the HN and on venet0 interface inside VE.
		
		
		
 |  
	| 
		
	 | 
 
 
 |