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

[Xen-users] Failed to setup NAT network


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: YAO <yffbrave@xxxxxxxxx>
  • Date: Fri, 17 Jun 2011 20:32:44 +0800
  • Delivery-date: Fri, 17 Jun 2011 05:34:06 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vcWYkg3YPlOcLFqKMDk3D5I9w0ea1xHI9E/tYhSOwN3lt0PhbbUjvmFVLDBd6TZqt8 CHIGVI/9qtG6w9x9cXFDY1nXHnEskRYz0Fh1B9QQnqn7zTB86kE2RJSdBM4MqhabVIsk 3qtzeTh4GUlq9QTx6bjHmCjSMaMHh7vrd0qbE=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I'm using Xen 4.1 and here's what I did:
1.comment network-script and vif-script about bridge in /etc/xen/xend-config.sxp, uncomment the lines about nat
2.set vm config, add something likeÂvif = [ 'mac=00:16:3e:00:00:11, ip=10.0.0.1' ]
3.set /etc/network/interfaces in domU, add lines as follows:
auto eth0
iface eth0 inet staticÂ
address 10.0.0.1Â
gateway 10.0.0.254Â
netmask 255.255.255.0

But it didn't work!

Here's the output of "ifconfig -a" in dom0

tap10.0 Â Link encap:Ethernet ÂHWaddr a6:8a:1b:92:be:af Â
     BROADCAST 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:500Â
     RX bytes:0 (0.0 B) ÂTX bytes:0 (0.0 B)

vif10.0 Â Link encap:Ethernet ÂHWaddr fe:ff:ff:ff:ff:ff Â
     BROADCAST 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:32Â
     RX bytes:0 (0.0 B) ÂTX bytes:0 (0.0 B)

the vif10.0 didn't get an ip!
The same thing happened in domU whose eth0 didn't get ip, too. Strangely, eth0 was renamed to eth9, I don't know why.

So, where did I make mistake? How to setup NAT network in the new toolstack?

By the way, can I use bridge mode if I have only one IP?
_______________________________________________
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®.