From: <ope...@li...> - 2010-11-08 20:32:16
|
Have you tried to ping some other IP addresses from outside world - default iptables rules on CentOS will block DNS traffic for OpenVZ VM-s. iptables -L output should show no rules in iptables chains in order DNS to work for VM-s - or you must setup correct rules for venet0 device to allow DNS traffic. -- ---------------------------------------------- Andres Toomsalu, an...@ac... On 08.11.2010, at 6:49, ope...@li... wrote: > Hello, > > I have followed the guide to create a VM from CentOS_5.5_x64 and assigned it IP 10.100.100.50 which is within the range of my DHCP router. I can ping the router and the router can ping the VM but there is no connection to outside world (e.g google.com is unreachable). I have noted that route for veneth has not populated when the interface started. Is there any specific reason to that? What can I do to get this running? > > *** I also get "SIOCADDRT: Network is unreachable" when I do service network restart. > > Following is all the output: > > [root@virtN /]# 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: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) > > venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 > inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255 > UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 > RX packets:99 errors:0 dropped:0 overruns:0 frame:0 > TX packets:115 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:7795 (7.6 KiB) TX bytes:9107 (8.8 KiB) > > venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 > inet addr:10.100.100.50 P-t-P:10.100.100.50 Bcast:10.100.100.50 Mask:255.255.255.255 > UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 > > [root@virtN /]# route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use Iface > 192.0.2.0 * 255.255.255.0 U 0 0 0 venet0 > 169.254.0.0 * 255.255.0.0 U 0 0 0 venet0 > default 192.0.2.1 0.0.0.0 UG 0 0 0 venet0 > [root@virtN /]# ping 10.100.100.1 > PING 10.100.100.1 (10.100.100.1) 56(84) bytes of data. > 64 bytes from 10.100.100.1: icmp_seq=1 ttl=63 time=0.316 ms > 64 bytes from 10.100.100.1: icmp_seq=2 ttl=63 time=0.497 ms > > --- 10.100.100.1 ping statistics --- > 2 packets transmitted, 2 received, 0% packet loss, time 999ms > rtt min/avg/max/mdev = 0.316/0.406/0.497/0.092 ms > [root@virtN /]# ping google.com > PING google.com (173.194.32.104) 56(84) bytes of data. > > --- google.com ping statistics --- > 3 packets transmitted, 0 received, 100% packet loss, time 1999ms > > [root@virtN /]# service network restart > Shutting down interface venet0: [ OK ] > Shutting down loopback interface: [ OK ] > Bringing up loopback interface: [ OK ] > Bringing up interface venet0: SIOCADDRT: Network is unreachable > [ OK ] > > > Thanks, > Bruce > ------------------------------------------------------------------------------ > The Next 800 Companies to Lead America's Growth: New Video Whitepaper > David G. Thomson, author of the best-selling book "Blueprint to a > Billion" shares his insights and actions to help propel your > business during the next growth cycle. Listen Now! > http://p.sf.net/sfu/SAP-dev2dev_______________________________________________ > OpenNode-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opennode-users |