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] how to assign public IP for different dom

To: "Pete Kay" <petedao@xxxxxxxxx>
Subject: Re: [Xen-users] how to assign public IP for different dom
From: Thomas <iamkenzo@xxxxxxxxx>
Date: Thu, 4 Dec 2008 13:14:15 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 04 Dec 2008 04:15:06 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=e4ffr5s/NNIFaSnDrUlILiNKIGL9cJ4tJop5wZphEOo=; b=qYZ1BQN6PVWOupOrowZ0VdiV6+76w96qHtxFIR9RqR5JDm5octgB96FW1bGdjDhdgK 7SvsDjPeNQo+vA45u2yDeBuJHFq03xNV0/387J9onRgHMYG+/CuRnsRMIjjjquDtNYDz bpqMQoEwIjFpFVA5BxUz5jhjla3aCowG7yOR4=
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=NZpxJehVpJgU+mckKw1/ytc3Pp4+pC+IPmb4l+ilnQwrjhtF13LjRb1lga1Su7Buu/ Svn2vk0SKcMR5NR0+24TcyvJ71r7QF8IWfRAncSDUpnrum40NxBnpeEyZMrcxENxxY7d VNBQKe3ieeddcZ/20p/6q3VPTIFJdX97ZMcJg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7aa8bd9d0812030636y51611b76x3c2959c6953b5e6b@xxxxxxxxxxxxxx>
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: <7aa8bd9d0812030636y51611b76x3c2959c6953b5e6b@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

It is very easy. There are 2 ways of doing it:

Prelude: make sure your public IP points to the IP of your dom0.

Way1:
- In the domU config file, you put the public IP of the domU
- in the domU, edit /etc/network/interfaces with the correct public IP
and add a gateway

Way2 (my preference):
- using iptables, create a redirection rule based on IP.

Using way2 is a bit more tedious as you need to create a rule for each
port you want to make available over internet, but iptables gives you
more control on the packets.

I have participated in the following screencast:
http://www.digiprof.fr/products/demarrer-la-virtualisation-avec-xen

It walks you through all the steps of setting up a network on a Xen
virtual machine, and there is a chapter about public IP assignment.
It's in french but you should be able to understand the steps that are
anyway in english. If people are interested I can ask to have it
translated to english too.


Best regards,

On Wed, Dec 3, 2008 at 3:36 PM, Pete Kay <petedao@xxxxxxxxx> wrote:
> Hi,
>
> Within my local lan, I have a Centos box with 6 domU.  What I would like to
> do is to be able to assign different public IP to each of these dom.  Does
> anyone know how to do that?  What do I need to do in my dom0 and in my local
> lan router to configure different ip for each domU?
>
> Thanks for your help.
>
> Pete
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

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

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