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: "Peter Privat" <peter.privat@xxxxxxxxxxxx>
Subject: Re: [Xen-users] How to setup multiple vif's using different ethernet nic's for DomU
From: "xen rkar" <xen.rkar@xxxxxxxxx>
Date: Fri, 14 Nov 2008 14:24:27 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 14 Nov 2008 00:55:12 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=/L8/zJ/76VJuOOWhSLV9WbZ2f+H/DAaGqREd3ZN+Qw4=; b=Y7Y3exhnKanfBfJ1SUDp1n7wvtgtVslXSe6g/WEpT0R4jC9tllU65Tv5mFtvfOOL/a 4n1gw5jcD4naHrHP0QcY2utvpPTHR/eK1KbPKSFpAQEhlOG7wTMvTG3OaLivAKkXKuW3 nf6IYC8vvdas63YF32dLoCtcL2tH0xKk//7ZA=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=A2nCBaQSgyPw7S6aeBR/Q8DP+tZZt9vn1rrSN/+y+NaMHsZyoZTl62tNg7ukG4ev3Y td9LVgpL7cn/QRdyP0QFIcmJH8N8He+7vDjYIKY2U9q1ZzpQqNULUHaLT4N4DqMtboie P/qwV9yjZzBSplg7sUkZ5yrbAwVOYrkuhNQuA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1226649937.6439.13.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> <1226649937.6439.13.camel@cyrus>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks Peter for the steps.

The xenbr1 bridge however is not connecting to the physical device.

brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.0018fe7846b6       no              vif5.0
                                                        peth0
xenbr1          8000.feffffffffff       no              vif5.1


Any more configurations we missed out?

Thanks,
karthik


On Fri, Nov 14, 2008 at 1:35 PM, Peter Privat <peter.privat@xxxxxxxxxxxx> wrote:
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