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

Re: [Xen-users] One physical NIC and multiple bridges


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Gordon McLellan" <gordonthree@xxxxxxxxx>
  • Date: Sat, 15 Nov 2008 09:28:34 -0500
  • Delivery-date: Sat, 15 Nov 2008 06:29:19 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=n2ansUj0jOD+AJb5sofrX2G/x0+LJ2j3G3loSrL5I2O0anpHtwgEjSwWDMCeu+av33 cLL14boOOcetqXApDH3QwFN/dU2TFDHebbr2umFLZ5Ev/12YH2KVGinFzdPrFQ4lTIcl mWoriINNQgFpxY60xl0L3HXDQbYkg0ltOL92I=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

What does your network setup script look like in /etc/xen/scripts?

As far as I know, a bridge has to be tied to a device on the host, but
that physical device doesn't need to be real.  My host has four
bridges on it, three of which are bound to real ethernet devices, the
fourth is bound only to a dummy ethernet device.

here's my network setup script, it lives in /etc/xen/scripts and gets
auto-executed when xend starts up.

# cat my-network-script
#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
"$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1
"$dir/network-bridge" "$@" vifnum=2 netdev=eth3 bridge=xenbr2
"$dir/network-bridge" "$@" vifnum=3 netdev=dummy1 bridge=xenbr3

bridge3 is my 100% virtual network, which exists only in the memory on
the host and not on my physical network.  It's connected to my
phyiscal network via a firewall DomU which only allows certain traffic
to cross over.

I hope this helps!

-Gordon

On Sat, Nov 15, 2008 at 8:41 AM, Tom Lobato <tomlobato@xxxxxxxxx> wrote:
>
>    Hi all!
>
>    There are several docs teaching how to configure multiple bridges
> for Xen when you have multiple NICs.
>    Well, I want to simulate a environment with 4 machines, but only 2
> must have internet access (through physical NIC on dom0), and others can
> comunicate with each other. So, I need to make some additional bridges
> UNrelated to my physical NIC on dom0.
>
>    I tried to create it manually using:
>       brctl addbr br1
>    then, in domU 1 config:
>       vif = ... bridge=br1 ...
>    then, in domU 2 config:
>       vif = ... bridge=br1 ...
>
>    When domU 1 and 2 boots up, it is attached to this bridge, as hoped,
> but cant ping another domU connected to the same bridge.
>    A simple map of my domUs:
>
>               domUs
> ----------------------------------------
> |               isp1_server----|---physical_NIC
> |                        |             |
> | client-----lan_server     |
> |                        |             |
> |               isp2_server----|---physical_NIC
> |________________________|
>
>    Im I forgetting something? If you has a better approach to setup it,
> please tell me.
>
>
>
>
>    Tom Lobato
>
>
> _______________________________________________
> 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®.