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] Some examples to do xen bridges

To: Alan Pearson <alandpearson@xxxxxxxxx>
Subject: Re: [Xen-users] Some examples to do xen bridges
From: carlopmart <carlopmart@xxxxxxxxx>
Date: Wed, 28 Mar 2007 15:39:00 +0200
Cc: trilok nuwal <tc.nuwal@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 28 Mar 2007 06:38:44 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=cnuZztKdjmyDz4IcH4VrDkPYnztVFv7GqcMh8d0DU4uhh6sSbrZnSPOyUS36b5DNhGeUp5EKnoD1IXJYz/EPHH2W6FXGc1VF54awO5LO2xmdP38sthlP+IgFzZTz6ET2YnclpsP4+MlYIqEJEP4tRStyKSrNstJOTikbunLmVlQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=opaHtEEVNoY1ILA1q6yqDIqw7vlyUxl5d2aZrLehG2ySYRjgJpzrPQeYX8n5p10KonDfcMrnpbru+hznYmgZw+985rLRsBjsOrfIVFYiunih2BCSgbpXevh2GhPdhcma5VILVw9rQ/d5bTQ1Uu4aU7juqVnAazvuOi2zzZSyrSs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <13816.135.196.139.50.1175087693.squirrel@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <460A4F7B.3010303@xxxxxxxxx> <f58fc26d0703280559u6a02bb03i6379016897922fa9@xxxxxxxxxxxxxx> <13816.135.196.139.50.1175087693.squirrel@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070302)
Alan Pearson wrote:
I do this on my Xen servers, and when setting up the information was very
unclear. It's actually very simple.

Edit xend-config.sxp and change the line :

(network-script network-bridge)

To  :
(network-script my-network-script)


Then create /etc/xen/scripts/my-network-script as follows :

#!/bin/sh

# start bridges on both eth0 and eth1
XENDIR="/etc/xen/scripts"


$XENDIR/network-bridge "$@" netdev=eth0 bridge=xenbr0 vifnum=0
$XENDIR/network-bridge "$@" netdev=eth1 bridge=xenbr1 vifnum=1


Thanks Alan, but using network-brige script, dom0 is bocked. My idea is to use ifcf-net scripts like this:

/etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth0
BOOTPROTO=static
HWADDR=00:80:5A:4A:2B:FC
ONBOOT=yes
TYPE=Ethernet
BRIDGE=xenbr0

/etc/sysconfig/network-scripts/ifcfg-xenbr0
# Xen Bridge0
DEVICE=xenbr0
TYPE=Bridge
IPADDR=172.25.50.2
NETMASK=255.255.255.248
NETWORK=172.25.50.0
DELAY=0
STP=off
ONBOOT=yes

But with this config, xenbr0 needs to use an ip address ...


--
CL Martinez
carlopmart {at} gmail {d0t} com

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