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

Re: [Xen-users] Xen with NAT networking.

  • To: Huagang XIE <huagangxie@xxxxxxxxx>
  • From: Mark Pryor <tlviewer@xxxxxxxxx>
  • Date: Wed, 9 Feb 2011 15:18:01 -0800 (PST)
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 09 Feb 2011 15:19:07 -0800
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=3IOmhV3r0Ib/RBqzYIjFXJYpp4EzxZb1PLYuj1BooaPJrFt3BW+OH6V7+oJxB7Fqy7ar6yuy/eTkUB9IPsx+jY0LbVF3StsM3L2Z8EY1ccgxPEnVakSUy2jO6S6pCz/vIp4HrRn2hAZ6nxj66K/0ZnJ6DAWi5y5Lc+ACBvlxh2E=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

--- On Wed, 2/9/11, Huagang XIE <huagangxie@xxxxxxxxx> wrote:

> From: Huagang XIE <huagangxie@xxxxxxxxx>
> Subject: [Xen-users] Xen with NAT networking.
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Date: Wednesday, February 9, 2011, 2:34 PM
> Hello there,
> I was trying to setup a XEN NAT. I think I follow all the
> instructions
> but still failed.
> In NAT environment,  the tap.x is the gateway for the
> guest os, right?
> but the xen always set the
> gateway to vif.x, and the guest os will never be able to
> communicate outside.

Gateway is at
so set your guest with

address   <--- your choice

whatever address you choose on the above network, must be set in both 
ifcfg-eth0 and in your domU config

vif = ['ip=,mac=00:16:3e:aa:bb:cc']

> Does anyone here successfully configure a NAT networking
> with XEN? I
> am using Xen 3.4.3 and also trying 4.0.1 under Centos 5.

yes, but in addition to above comments add:

echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf


Xen-users mailing list



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