From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ivan Peikov Subject: No route to localhost in virtual domains Date: Wed, 23 Feb 2005 17:06:38 +0200 Message-ID: <200502231706.38982.vanio@netclime.com> Reply-To: vanio@netclime.com Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Hi! I'm running Xen 2.0.4 over patched 2.6.10 kernel and have problem with routing to loopback interface in virtual domains (can't ping 127.0.0.1). Here is how it looks: -------------- root@vm1:/tmp# ifconfig eth0 Link encap:Ethernet HWaddr AA:00:00:5F:BB:9C inet addr:192.168.0.101 Bcast:192.168.0.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:171856 errors:0 dropped:0 overruns:0 frame:0 TX packets:160196 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:37456710 (35.7 Mb) TX bytes:51323199 (48.9 Mb) lo Link encap:Local Loopback 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) root@vm1:/tmp# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 * 255.255.255.0 U 0 0 0 eth0 default rtr.bg.nc 0.0.0.0 UG 0 0 0 eth0 -------------- When I attempt to add the route manually I get this: -------------- root@vm1:/tmp# /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo SIOCADDRT: No such device -------------- Routing through eth0 works fine. Should I somehow export the loopback interface to virtual domains and how? While still on the topic, I'd like to ask another (probably stupid) networking question. I still can't get the dom0's network running. When virtual machines get started and xen-br0 bridge gets up, the MAC address of my NIC gets associated with the bridge and no matter what I do, I can't route no packets to and from dom0's eth0 inteface. All the other virtual domains have no such problem. Any idea how do I solve this? Thanks!! Regards, Ivan Peikov ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click