WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] can any one help with NAT using xen 3.4.1

To: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>, brian@xxxxxxxxxx
Subject: Re: [Xen-users] can any one help with NAT using xen 3.4.1
From: Tapas Mishra <mightydreams@xxxxxxxxx>
Date: Wed, 21 Apr 2010 09:03:32 +0530
Cc:
Delivery-date: Tue, 20 Apr 2010 20:35:53 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=5+1q0MeT0bo9OP7FVsUovw5q2k1w19Py+dW5jZG5FRg=; b=luKm86NdTOeFtr5doTGXYgUbs1cBNB8akOnGm+N3l+IoaCOQWOXgzYdbJuCpQ72LkK 5k4H1EZyNCCPmQKNPqBAPYAz9L8Xn6f2iGqqbz4sKbBOfvRVCGA0UKy1K5/L7mkKT2Ry UMx+/2TkgVmx13PXOPxrFEdqynYwZdw8LchqM=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=fkW98PqNG8eoS3y7+m1IkHH6LBqSLKH979O6SmWA2vzsnYK57GZyvNVKA0YFHFGgmh /UWDADNnyT1m6S2fK0l7TuJIswrCitTGy70nA+cjYePV4Foh8mfBxoNo727WpaRtZ6dA Mz+WIIKwtI0Q42lpuGb4Dl8gq8X6I6V+5Zj0M=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C182E72E-9AB5-4778-97FC-12E9E71C5E7A@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <30C07B87-1DAA-4803-BEC0-895864C99DE6@xxxxxxxxxx> <w2ke2d2e5831004201128p725b18aj36e46afbe9b2cd5b@xxxxxxxxxxxxxx> <65EEC6EA-AF35-41A2-8FB0-2A135C91471C@xxxxxxxxxx> <r2qe2d2e5831004201155od6894406ub890c2b0608fab6@xxxxxxxxxxxxxx> <C182E72E-9AB5-4778-97FC-12E9E71C5E7A@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>
> How will packets then know to go from 10.10.10.200 which is what the world
> thinks my domU is  to 10.0.10.200 which is my internal domU IP as config'd
> via its network scripts?
I am a bit confused on your question is DomU on a different subnet
than the LAN .
10.10.10.200 and 10.0.100.200 are both DomU how can you have 2 IPs on
different subnet to your DomU are you using 2 LAN cards.If that is the
case then you need to setup IPTABLES on Dom0.Even if you choose to
isolate that then also IPTABLES you need to setup.
Your Dom0 has to be configured to forward the packets coming to
10.10.10.200 to 10.0.100.200 then that means your Dom0 should also be
in 10.10.10.x range .
If it is a bridge setup you don't need to do all that simple
forwarding will do  just check it once by enabling IP FORWARDING if it
does not work then go ahead with IPTABLES.

I am myself not clear on this  part but it seems that Xend daemon
takes care of this part at least if both xen dom0 and xen domU are in
same subnet otherwise if you check my messages on this list you need
to have a dummy bridge and then configure routing from that.

But I have seen if you ping from DomU to your network or want to do an
SSH and on the other machine you see you will get IP of DomU only.
You can use a 3rd machine on your network and login to it via DomU and
then type command w to confirm that it is able to know your IP.
It is as good as saying that your added a physical machine to your network/

For your DomU the Dom0 will be the gateway that you will have to configure.
and DNS will be same as for rest of machines on network,DomU needs to
have just the gateway as Dom0 then xend daemon will take care of rest
of the things.

> Or should I also set the ip in config.sxp as you have written in section E?
I have not said to configure IP on config.sxp
you need to check vif-bridge and network-bridge words in the two lines
there and uncomment if it is a bridged setup.
and rest should be commented.


-- 
Tapas

+91 8971248477

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

<Prev in Thread] Current Thread [Next in Thread>