|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Multiple IP Addresses
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
signature.asc
Description: Digital signature
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|