[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Multiple bridged interfaces


  • To: "ml@xxxxxxxxx" <ml@xxxxxxxxx>
  • 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
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.