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] Xen with 2 eth interface

To: Franck Delmond <f.delmond@xxxxxxx>
Subject: Re: [Xen-users] Xen with 2 eth interface
From: Mike Lovell <mike@xxxxxxxxxxxx>
Date: Thu, 14 May 2009 18:12:39 -0600
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 14 May 2009 17:13:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A0CA752.3010003@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: <4A0CA752.3010003@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090409)
Franck Delmond wrote:
hello,
I want to configure 2 interface like this

eth0 for LAN is 172.16.0.3
eth1 for SAN is 192.168.0.13

I want all VM can access to all network

my configuration is :

(network-script 'network-bridge netdev=eth0') to have peth0 and I have a peth0 interface (network-script 'network-bridge netdev=eth1') to have peth1but I don't have a peth1 interface

iirc, you cannot specify two network-script options in xend-config.sxp. what you need to do is make a wrapper script that is something like

#!/bin/sh
/etc/xen/scripts/network-bridge netdev=eth0 start
/etc/xen/scripts/network-bridge netdev=eth1 start

and then put that wrapper script in you network-script option for xend. it would hurt to make things a little smart like being able to call start and stop to the same wrapper that will start or stop both of the network interfaces or handling errors. hopefully that points you in the right direction.

mike

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

<Prev in Thread] Current Thread [Next in Thread>