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

Re: [Xen-users] Multiple IP Addresses


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Andy Smith <andy@xxxxxxxxxxxxxx>
  • Date: Wed, 26 Sep 2007 21:21:58 +0000
  • Delivery-date: Wed, 26 Sep 2007 14:22:50 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Openpgp: id=BF15490B; url=http://strugglers.net/~andy/pubkey.asc

Hi,

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  123.123.123.1
> DomU1 123.123.123.2
> DomU2 123.123.123.4

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 123.123.123.1
> netmask 255.255.255.248
> gateway 123.123.123.0

An IP address ending in .0 is not a valid gateway for a network with
a netmask of 255.255.255.248.  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 123.123.123.2
> netmask 255.255.255.248

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 123.123.123.3
> netmask 255.255.255.248
> ---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
themselves.

Cheers,
Andy

Attachment: signature.asc
Description: Digital signature

_______________________________________________
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®.