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

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


  • To: Xen List <xen-users@xxxxxxxxxxxxxxxxxxx>, brian@xxxxxxxxxx
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

>
> 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


 


Rackspace

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