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] How to setup multiple vif's using different ethernet nic

To: xen rkar <xen.rkar@xxxxxxxxx>
Subject: Re: [Xen-users] How to setup multiple vif's using different ethernet nic's for DomU
From: Peter Privat <peter.privat@xxxxxxxxxxxx>
Date: Fri, 14 Nov 2008 15:05:37 +0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 14 Nov 2008 00:06:24 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1226649267.6439.11.camel@cyrus>
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: <406674080811131959m5b1e33b8q280c3640c65502c6@xxxxxxxxxxxxxx> <1226649267.6439.11.camel@cyrus>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2008-11-14 at 14:54 +0700, Peter Privat wrote:
I have been reading the xen-netorking wiki page. But I could not get a specific sequence of steps to get this setup running.
Appreciate if you can point me to any doc on the steps.

Maybe this will work:
http://idolinux.blogspot.com/2008/08/xen-add-network-bridge-for-eth1.html


try this:

you need 2 bridge interfaces:
xenbr0 = eth0
xenbr1 = eth1

create a new script with the following lines: (ex: multiplebridge.sh) in /etc/xen/scripts/

#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1

make the script executable (chmod +x /etc/xen/scripts/multiplebridge.sh)

modify /etc/xen/xend-config.sxp
change the line:
(network-script network-bridge)
to
(network-script multiplebridge.sh)

modify your virtual machine to use the new bridge interface:
ex:
vif = [ 'bridge=xenbr1', ]

Hope this helps.

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