OpenVZ Forum


Home » General » Support » cannot ping internet from within VE
Re: cannot ping internet from within VE [message #30843 is a reply to message #30755] Mon, 09 June 2008 07:10 Go to previous messageGo to previous message
thorpe is currently offline  thorpe
Messages: 16
Registered: February 2008
Location: Sydney - Australia
Junior Member
My HN is actually within the same network with an ip address of 192.168.10.2

Here are a few details from the HN.

thorpe@oblivion ~ # sudo ifconfig
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:96 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:8164 (7.9 KiB)  TX bytes:8164 (7.9 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:248498 errors:0 dropped:0 overruns:0 frame:0
          TX packets:114369 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:17486738 (16.6 MiB)  TX bytes:10247348 (9.7 MiB)

wlan0     Link encap:Ethernet  HWaddr 00:1c:f0:89:f5:10  
          inet addr:192.168.10.2  Bcast:192.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::21c:f0ff:fe89:f510/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:227400 errors:0 dropped:0 overruns:0 frame:0
          TX packets:490967 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:68627472 (65.4 MiB)  TX bytes:39396100 (37.5 MiB)

wmaster0  Link encap:UNSPEC  HWaddr 00-1C-F0-89-F5-10-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

thorpe@oblivion ~ # ip route list table all
192.168.10.104 dev venet0  scope link  src 192.168.10.2 
192.168.10.105 dev venet0  scope link  src 192.168.10.2 
192.168.10.106 dev venet0  scope link  src 192.168.10.2 
192.168.10.100 dev venet0  scope link  src 192.168.10.2 
192.168.10.101 dev venet0  scope link  src 192.168.10.2 
192.168.10.102 dev venet0  scope link  src 192.168.10.2 
192.168.10.103 dev venet0  scope link  src 192.168.10.2 
192.0.0.0/8 dev wlan0  proto kernel  scope link  src 192.168.10.2 
default via 192.168.10.1 dev wlan0 
broadcast 127.255.255.255 dev lo  table local  proto kernel  scope link  src 127.0.0.1 
broadcast 192.0.0.0 dev wlan0  table local  proto kernel  scope link  src 192.168.10.2 
local 192.168.10.2 dev wlan0  table local  proto kernel  scope host  src 192.168.10.2 
broadcast 192.255.255.255 dev wlan0  table local  proto kernel  scope link  src 192.168.10.2 
broadcast 127.0.0.0 dev lo  table local  proto kernel  scope link  src 127.0.0.1 
local 127.0.0.1 dev lo  table local  proto kernel  scope host  src 127.0.0.1 
local 127.0.0.0/8 dev lo  table local  proto kernel  scope host  src 127.0.0.1 
fe80::/64 dev wlan0  metric 256  expires 20895427sec mtu 1500 advmss 1440 hoplimit 4294967295
unreachable default dev lo  table unspec  proto none  metric -1  error -101 hoplimit 255
local ::1 via :: dev lo  table local  proto none  metric 0  mtu 16436 advmss 16376 hoplimit 4294967295
local fe80::21c:f0ff:fe89:f510 via :: dev lo  table local  proto none  metric 0  mtu 16436 advmss 16376 hoplimit 4294967295
ff00::/8 dev wlan0  table local  metric 256  expires 20895427sec mtu 1500 advmss 1440 hoplimit 4294967295
unreachable default dev lo  table unspec  proto none  metric -1  error -101 hoplimit 255

And, from within the VE in question.
root@etch-lab:/# ip rule list
-bash: ip: command not found

Obviously, without an internet connection I can't install ip on the VE.

I have no netfilter (iptables) rules in place on either the HN or the VE.

thorpe@oblivion ~ # sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

root@etch-lab:/# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

As you can probably see I have other VE's running on this same machine, all of which have this same issue. No internet connection.

[Updated on: Mon, 09 June 2008 07:12]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSH proxy/gateway
Next Topic: LVM backup 512MB free
Goto Forum:
  


Current Time: Thu Oct 17 14:24:24 GMT 2024

Total time taken to generate the page: 0.05337 seconds