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/
Home Products Support Community News


Re: [Xen-users] Multiple IP Addresses

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Multiple IP Addresses
From: Andy Smith <andy@xxxxxxxxxxxxxx>
Date: Wed, 26 Sep 2007 21:21:58 +0000
Delivery-date: Wed, 26 Sep 2007 14:22:50 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070926221035.o56bi7cg1wg4wk0o@xxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc
References: <20070926221035.o56bi7cg1wg4wk0o@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Sep 26, 2007 at 10:10:35PM +0200, h9802641@xxxxxxxxxxxxx wrote:
> Hi everybody,
> I#m new to XEN and I have a new dedicated server and 5 IP addresses  
> pointing to it. I want to configure a setup so the servers listen to  
> those IPs like this:
> Dom0
> DomU1
> DomU2

And now tell us what your real IP addresses are so that we can work
out the proper netmask, gateway etc should be.

> So it set up the /etc/network interfaces like this:

Set it where?  if using a bridged or routed setup dom0 should NOT
use the IP addresses you want to assign to domUs; just assign them
directly to the domUs.

> ---8<-----------------------------------
> auto eth0
> iface eth0 inet static
> address
> netmask
> gateway

An IP address ending in .0 is not a valid gateway for a network with
a netmask of  Of course we can't tell if this is a
mistake or an attempt at obfuscation, so don't obfuscate!

> auto eth0:0
> iface eth0:0 inet static
> address
> netmask

eth0 and eth0:0 are the same interface.  Either start at eth0:0 then
go to eth0:1, or else start at eth0 and then go to eth0:1.

> auto eth0:1
> iface eth0:1 inet static
> address
> netmask
> ---8<-----------------------------------
> and configured the sshd at the dom0 to only listen to the first ip.
> So my question is how to setup the different DomUs so each of it is  
> only listening to one single IP.

Make dom0 use one IP address and have your domUs each use one IP


Attachment: signature.asc
Description: Digital signature

Xen-users mailing list