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] dom0 eth0:0, eth0:1, eth0:2 network setup alias ips

To: dan@xxxxxxx
Subject: Re: [Xen-users] dom0 eth0:0, eth0:1, eth0:2 network setup alias ips
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Wed, 24 Mar 2010 11:37:59 +0700
Cc: Xen User-List <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 23 Mar 2010 21:39:07 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4BA90B6B.4070209@xxxxxxx>
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: <4BA88C29.4070409@xxxxxxx> <039E0B4AA9103344A80DA55DDDC76A93239922@xxxxxxxxxxxxxxxxxxxxxx> <4BA90B6B.4070209@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, Mar 24, 2010 at 1:41 AM, Dan Waterloo <dan@xxxxxxx> wrote:
> I was wondering if there was a way to setup the physical eth0 with only a
> mac address, then put a bridge in
> dom0 with the eth0 mac address, and some virtual eth ports, each with a
> public IP/netmask/gateway?
>
> I'm thinking that I'd need to do this manually...?

You need to provide some examples, as your earlier explanation is
somewhat confusing.

Here's an example though. Let's say you have three different IP
address available, 192.168.1.101,102,and 103, netmask 255.255.255.0.
All these IPs use gateway 192.168.1.1 as gateway (as they're on the
same network) and 8.8.8.8 as DNS. Setting this is easy.

First pick one IP you want to use in dom0. Say 192.168.1.101. Put it
on eth0, and use xen's default network bridge script. You should end
up with a bridge called eth0 or xenbr0 (depends on your xen version).

Next create two domUs using the xenbr0 bridge, assign them each one of
the remaining IPs (192.168.1.102 and 192.168.1.103). Use the same DNS
and gateway as you do on dom0.

That should be it.

-- 
Fajar

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