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] One nic multiple ip's

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] One nic multiple ip's
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Tue, 25 Aug 2009 23:33:23 +0100
Delivery-date: Tue, 25 Aug 2009 15:34:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <25141074.post@xxxxxxxxxxxxxxx>
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: <25141074.post@xxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
nomid wrote:
I have one nic and 5 static ip's. i use debian lenny.

How configure dom0 and domU, gets own ip address.

I think what you are asking is :

Your connection is via ethernet and your upstream provider gives you 5 IPs (I'm guessing a /29 subnet). You want to use different IPs for Dom0 and each DomU.

It's very simple, in each device you want to have a public IP, you configure it with the correct subnet mask, one IP from the range provided, and set the default gateway to the upstream providers router address.

Eg, if the IPs provided are from 1.2.3.18 to 1.2.3.22 and the providers router is at 1.2.3.17, then you might configure Dom0 as :
IP: 1.2.3.18, netmask 255.255.255.248, gateway 1.2.3.17
Your first DomU as :
IP: 1.2.3.19, netmask 255.255.255.248, gateway 1.2.3.17
and so on.

You would of course configure your Dom0 networking in bridge mode.


There are other ways to set things up. Some providers will give you a /29 subnet, but route your traffic over a point-point link with a different /30 subnet. Sticking with the same subnet as above, you'd want to run in routed mode, with an outside interface IP to match the link and an inside interface in your 1.2.3.16/29 subnet.


Yet another option is via proxy arp.


You may be able to pick some info from these articles :
http://shorewall.net/XenMyWay.html
http://shorewall.net/XenMyWay-Routed.html
They are how the author of the Shorewall firewall package configured his systems (two different ways) with similar requirements.

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

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