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] Xen creating two bridges

This works great for adding a new domU or HVM to a particular bridge, but setting up the bridges to begin with can be a bit challenging.  I've found using Sysconfig is easier, especially with VLANs and they seem to confuse the XEN scripts that do the bridge setup.


-Nick

>>> On Fri, Jan 11, 2008 at  8:01 AM, Gerhard Possler <gerhard.possler@xxxxxxxxxx> wrote:


Hi all,

you may use in the xend-config.sxp

(vif-script vif-bridge bridge=xenb0)

or use scripts:

        brctl addbr xenintbr
                brctl setfd xenintbr 0
                brctl sethello xenintbr 0
                brctl stp xenintbr off

                echo "IP adress of xen bridge is 10.0.0.1"
                      ifconfig xenintbr 10.0.0.1 netmask 255.255.255.0 up
                      echo 1 > /proc/sys/net/ipv4/ip_forward

Mit freundlichen Grüßen / with kind regards

Gerhard Possler
IT Architect
IBM Enterprise Linux Services

ELS Wiki
@IBM (only accessible via IBM intranet)

IT-Services and Solutions GmbH
Rathausstr. 7, D-09111 Chemnitz
Geschäftsführung: Rainer Laier, Michael Mai
Sitz der Gesellschaft: Chemnitz
Registergericht: Amtsgericht Chemnitz, HRB 18409

http://www.itsas.de/

gerhard.possler@xxxxxxxxxx
Mobil +49 (0) 160 90578637





"Nick Couchman" <Nick.Couchman@xxxxxxxxx> 
Sent by: xen-users-bounces@xxxxxxxxxxxxxxxxxxx

11.01.2008 15:05

To

"Russell Horn" <albanach@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>

cc


Subject

Re: [Xen-users] Xen creating two bridges








I've found that I have better luck creating bridges when I use the bridge facilities built in to Linux instead of the XEN ones.  For example, on SuSE you can create an /etc/sysconfig/network/ifcfg-xenbr0 file and put configuration directives in this file that tell Linux which interface(s) to put in the bridge and even assign an IP or set DHCP on the bridge.  Most of my XEN servers have multiple VLANs - usually five or six, so I've found that doing this greatly simplifies the amount of configuration I have to do.
 
-Nick

>>> On 2008/01/10 at 19:51, "Russell Horn" <albanach@xxxxxxxxx> wrote:

Hi,

I'm trying to set up networking on a new machine.

I'm not getting any networking from the domU's

I notice that I have two bridges being created:

xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
         UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
         RX packets:3024 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1802480 (1.7 Mb)  TX bytes:258 (258.0 b)

xenbr1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
         inet6 addr: fe80::200:ff:fe00:0/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:44 errors:0 dropped:0 overruns:0 frame:0
         TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:1232 (1.2 Kb)  TX bytes:468 (468.0 b)

Any idea why that would be?

/etc/xen/xend-config.sxp only contains this:

(xend-relocation-server yes)
(xend-relocation-hosts-allow '^localhost$')
(network-script 'network-bridge netdev=eth0')
(vif-script vif-bridge)
(dom0-min-mem 196)
(dom0-cpus 0)

I'm configuring networking for the domU with this line:
vif=[ 'mac=00:16:3e:6a:b4:43', 'bridge=xenbr0' ]

Any idea why I'm seeing two bridges and if that might point to why I'm
not getting any network throughput on my virtual machines?

Thanks,

Russell

_______________________________________________
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>