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] Multiple bridged interfaces

To: "ml@xxxxxxxxx" <ml@xxxxxxxxx>
Subject: Re: [Xen-users] Multiple bridged interfaces
From: Thiago Camargo Martins Cordeiro <thiagocmartinsc@xxxxxxxxx>
Date: Tue, 3 Mar 2009 15:05:17 -0300
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 03 Mar 2009 10:06:06 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=GtMiIAWJotMBxVIRK8AHPR9syozFstCMifmr1VqmUpg=; b=aTGdRwoNJYUAtOgT7ZUA3RN3xJXgu6i2Yq6GNrv6v8LZURMXcIDfqtO0JB183UlSAd N/5UKBCgZD4NRY3aLTWvR8rcRnVhCdl/p3xj9qw0YZxyVTUweA+4zLaP8Hozn9En+6bB Ac/qlSvDoto44S0XgIY01bAS7TLOVwo+8Aknk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=fKbgC8CZa9polGLiOA03KNIMh8Ubfm/G8bfr1k4TWyWnWUekFFPZrZ/NL+OpU8xvq8 RxGAkelFk/UN0vtB+XJpV8LqFehtA/vXJjQ284RYCIOP61RajhAVmB7/H2aVc3hBrQw7 Ovujj/OmSSvSupEbENwHHMFzF2S7xfRmqc6Vs=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49AD3EAB.30002@xxxxxxxxx>
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: <49AD3EAB.30002@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Mario,

 First, put some address in your /etc/network/interfaces, like:

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.1
        netmask 255.255.255.0
        gateway 192.168.1.254

auto eth1
iface eth1 inet static
        address 10.10.1.1
        netmask 255.255.255.252

auto eth2
iface eth2 inet static
        address 10.10.2.1
        netmask 255.255.255.252


 Make the file /etc/xen/scripts/network-bridge-wrapper with:

#!/bin/sh
/etc/xen/scripts/network-bridge $1 netdev=eth0
/etc/xen/scripts/network-bridge $1 netdev=eth1
/etc/xen/scripts/network-bridge $1 netdev=eth2

 Save it and "chmod +x /etc/xen/scripts/network-bridge-wrapper";

 And in /etc/xen/xend-config.sxp change the line:

(network-script network-bridge)

to:
(network-script network-bridge-wrapper)

 This will bring up 3 bridges, eth0, eth1 and eth2...


Good luck!
Thiago


2009/3/3 ml@xxxxxxxxx <ml@xxxxxxxxx>
Hello List,

i would like to use eth2 and eth3 on my DomU Domains. Right now i can only get one interface working.
I espect eth2 to become peth2 and eth3 to peth3. What must the config file look like?

i tried:

(network-script 'network-bridge netdev=eth2')
(network-script 'network-bridge netdev=eth3')

or

(network-script 'network-bridge netdev=eth2, netdev=eth3')

or

(network-script 'network-bridge netdev=eth2 netdev=eth3')

Is this correct so far? I set the ip adress via /etc/network/interfaces statically.

Cheers,
Mario


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

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>