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] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm

To: John Rounds <vannion@xxxxxxxxx>
Subject: Re: [Xen-users] 1 host, 1 nick, 1 regular bridge, 1 local bridge, 5 vm
From: JP P <storm66@xxxxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2011 00:21:45 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 21 Mar 2011 16:22:49 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTi=Z2qS9KKKoOGzb_ELjmeW9j-M8iTL4W-45oxjz@xxxxxxxxxxxxxx>
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: <AANLkTi=Z2qS9KKKoOGzb_ELjmeW9j-M8iTL4W-45oxjz@xxxxxxxxxxxxxx>
Reply-to: jp.pozzi@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Le lundi 21 mars 2011 à 14:46 -0500, John Rounds a écrit :
> So Working on CEntOS 5  I am trying to sett up Xen with 2 bridges, one
> that connects dom0 and most of the domU to the physical card and the
> out to the network.  Got that figured out no problem, now i want to
> have a second bridge that runs a local network for all the doms that
> doesn't connect to the network.
> 
> 
> With code I have found used in multiple places I can easily get 2
> bridges, and have all the Domu connected to it but i can't get Dom 0
> to have an interface.
> 
> 
> Script to set up bridges called fine from xend-config.sxp
> 
> 
>         ]# cat multiple-bridge
>         #!/bin/sh
>         dir=$(dirname "$0")
>         "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
>         "$dir/network-bridge" "$@" vifnum=2 netdev=dummy
>         bridge=xenbrloc1
> 
> 
> 
> 
> Out put from brctl show
>         bridge name     bridge id               STP enabled
>         interfaces
>         xenbr0          8000.feffffffffff                   no
>                vif1.0
>         
>                      peth0
>         
>                      vif0.0
>         xenbrloc1     8000.feffffffffff                    no
>              vif2.0
>         
>         vif1.1
>  
> 
> 
> 
> 
> Output of ifconfig
>         
>         eth0      Link encap:Ethernet  HWaddr 48:5B:39:17:09:73
>                   inet addr:192.168.1.119  Bcast:192.168.1.255
>          Mask:255.255.255.0
>                   inet6 addr: fe80::4a5b:39ff:fe17:973/64 Scope:Link
>                   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>                   RX packets:392 errors:0 dropped:0 overruns:0 frame:0
>                   TX packets:363 errors:0 dropped:0 overruns:0
>         carrier:0
>                   collisions:0 txqueuelen:0
>                   RX bytes:104964 (102.5 KiB)  TX bytes:50630 (49.4
>         KiB)
>         lo        Link encap:Local Loopback
>                   inet addr:127.0.0.1  Mask:255.0.0.0
>                   inet6 addr: ::1/128 Scope:Host
>                   UP LOOPBACK RUNNING  MTU:16436  Metric:1
>                   RX packets:140044 errors:0 dropped:0 overruns:0
>         frame:0
>                   TX packets:140044 errors:0 dropped:0 overruns:0
>         carrier:0
>                   collisions:0 txqueuelen:0
>                   RX bytes:87780902 (83.7 MiB)  TX bytes:87780902
>         (83.7 MiB)
>         peth0     Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:311531 errors:0 dropped:0 overruns:0
>         frame:0
>                   TX packets:46014 errors:0 dropped:0 overruns:0
>         carrier:0
>                   collisions:0 txqueuelen:1000
>                   RX bytes:73445358 (70.0 MiB)  TX bytes:5556591 (5.2
>         MiB)
>                   Interrupt:16 Base address:0xe000
>         vif0.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:40325 errors:0 dropped:0 overruns:0
>         frame:0
>                   TX packets:299826 errors:0 dropped:0 overruns:0
>         carrier:0
>                   collisions:0 txqueuelen:0
>                   RX bytes:5015081 (4.7 MiB)  TX bytes:54011703 (51.5
>         MiB)
>         vif1.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:9152 errors:0 dropped:0 overruns:0
>         frame:0
>                   TX packets:16963 errors:0 dropped:0 overruns:0
>         carrier:0
>                   collisions:0 txqueuelen:32
>                   RX bytes:1064334 (1.0 MiB)  TX bytes:20750937 (19.7
>         MiB)
>         vif1.1    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:13 errors:0 dropped:0 overruns:0 frame:0
>                   TX packets:13 errors:0 dropped:0 overruns:0
>         carrier:0
>                   collisions:0 txqueuelen:32
>                   RX bytes:580 (580.0 b)  TX bytes:762 (762.0 b)
>         vif2.0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:13 errors:0 dropped:0 overruns:0 frame:0
>                   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>                   collisions:0 txqueuelen:32
>                   RX bytes:580 (580.0 b)  TX bytes:0 (0.0 b)
>         xenbrloc1 Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:26 errors:0 dropped:0 overruns:0 frame:0
>                   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>                   collisions:0 txqueuelen:0
>                   RX bytes:1160 (1.1 KiB)  TX bytes:0 (0.0 b)
>         xenbr0    Link encap:Ethernet  HWaddr FE:FF:FF:FF:FF:FF
>                   UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
>                   RX packets:268045 errors:0 dropped:0 overruns:0
>         frame:0
>                   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>                   collisions:0 txqueuelen:0
>                   RX bytes:46171788 (44.0 MiB)  TX bytes:0 (0.0 b)
> 

Hello,

To declare a bridge in Debian (/etc/network/interfaces) :

auto br0
iface br0 inet static
      address 192.168.1.8
      netmask 255.255.255.0
      network 192.168.1.0
      broadcast 192.168.1.255
      mtu 1500
      txqueuelen 4096
      gateway 192.168.1.11
      bridge_ports eth0


Regards

JP P





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