[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Making a VM directly accessible from a public IP


  • To: "Daniel Kao" <dkao@xxxxxxxxxxxx>
  • From: Thomas <iamkenzo@xxxxxxxxx>
  • Date: Wed, 3 Sep 2008 17:44:59 +0200
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 03 Sep 2008 08:45:40 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=niPNhQx+qyaoh6rkPg0ZO/uWCDdcaOCAJdlZRq+n2tLxyeMPZbac9bG9OpXJCu/s/U Crzrb/iOALfxVj3FKZgnxRCFHTuZgu/OpbGi/AxNcjxhskuDF62Y8V0PZmkkjB3Ip6on ZAQ2MiNFbPU6lCIYssRwhLqFj0fcGUEh4rlNY=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

I still haven't found a solution to this problem.

In my xend-config.sxp file, I have activated the routed mode:
---
(network-script 'network-route netdev=eth0')
(vif-script     vif-route)
---


In my domU config file I have:
---
vif = [ 'mac=00:16:3e:00:00:01, ip=ip.fail.over' ]
---

and in /etc/network/interfaces of the domU:
---
auto eth0
iface eth0 inet static
netmask 255.255.255.0
address ip.fail.over
post-up /sbin/ip route add default dev eth0
---

In domU, ifconfig outputs:
---
eth0      Link encap:Ethernet  HWaddr 00:16:3E:00:00:01
          inet addr:ip.fail.over  Bcast:my.ip.adr.255  Mask:255.255.255.0
---

In dom0, ifconfig outputs:
---
eth0      Link encap:Ethernet  HWaddr 00:1B:FC:19:19:36
          inet addr:some.ip  Bcast:some.ip.255  Mask:255.255.255.0

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0

vif165.0  Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
          inet addr:some.ip  Bcast:91.255.255.255  Mask:255.255.255.255
---

But when I boot the domU, I see the error message:
---
Setting up networking....
Configuring network interfaces...SIOCADDRT: Network is unreachable
Failed to bring up eth0.
done.
---

And obviously I cannot ping my domU public address. I have also
flushed any iptables rule.

I am pretty sure that at some point in time the setup I have posted
above worked, but I tried to reproduce it today, and it doesn't
anymore, so I guess I dreamed it worked!?

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.