+ Post New Thread
Results 1 to 3 of 3
Thin Client and Virtual Machines Thread, Bridge setup for multiple Xen VMs in Technical; Hello All, We have recently had two new ADSL connections hooked up which we want to combine with a load ...
  1. #1

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,683
    Thank Post
    1,268
    Thanked 788 Times in 685 Posts
    Rep Power
    237

    Bridge setup for multiple Xen VMs

    Hello All,

    We have recently had two new ADSL connections hooked up which we want to combine with a load balancer / failover router. We also want filtering. ZeroShell can do the load-balancing between two ADSL connections, and SmoothWall can do the filtering. I've set up virtual machines for both on a single physical server which has three network connections - one for out LAN, and one leading to each ADSL router.

    The ZeroShell virtual machine has three virtual network interfaces - 192.168.0.1 and 192.168.1.1 for the ADSL routers and 10.0.0.4. The SmoothWall VM has two virtual network interfaces - 10.0.0.3 for the internal network and 10.0.0.5 for external.

    All I have to do is get SmoothWall's 10.0.0.5 and ZeroShell's 10.0.0.3 talking to each other. This works just fine if I place both VM's network connections in the same, default, virtual bridge (xenbr0). However, if I move the virtual interfaces assigned to 10.0.0.3 and 10.0.0.5 to their own bridge, SmoothWall can't see the ZeroShell VM and has no connection to the outside world.

    Obviously I don't want the ZeroShell machine available to the LAN, otherwise people could simply set it as their gateway server and bypass the SmoothWall filtering server. Has anyone any idea what I'm doing wrong? Is there something I've forgotten to configure when setting up the virtual interfaces, or the virtual bridge? Network bridges are set up in /etc/rc.local:

    Code:
    /etc/xen/scripts/network-bridge start vifnum=0
    /etc/xen/scripts/network-bridge start vifnum=1
    /etc/xen/scripts/network-bridge start vifnum=2
    brctl addbr xenbr3
    Do I need to add something to that last line? From reading the brctl man page, I get the impression that bridges set up via brctl act just like old network hubs - all network traffic on each port is replicated to all the other ports. Is that correct, or am I missing something?

    --
    David Hicks

  2. #2

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,683
    Thank Post
    1,268
    Thanked 788 Times in 685 Posts
    Rep Power
    237
    Hmm, odd: if I do "brctl showmacs xenbr3" I get a couple of completly random-looking MAC addresses listed, nothin like the ones I've assigned to the VMs that should be attched to that bridge. What gives?

    --
    David Hicks

  3. #3

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,683
    Thank Post
    1,268
    Thanked 788 Times in 685 Posts
    Rep Power
    237
    Quote Originally Posted by dhicks View Post
    brctl addbr xenbr3
    Ah, think I've got it - replacing the above line with:

    /etc/xen/scripts/network-bridge start vifnum=3 netdev=dummy0

    seems to work. What was I missing? Does the bridge need to be set as "up" or something before it will start passing traffic around?

    --
    David Hicks

SHARE:
+ Post New Thread

Similar Threads

  1. WiFi Bridge
    By m25man in forum Wireless Networks
    Replies: 11
    Last Post: 6th May 2010, 09:50 PM
  2. Network Bridge
    By Chuckster in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 11th October 2009, 11:11 PM
  3. Backup Xen VMs
    By cookie_monster in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 28th July 2009, 03:50 PM
  4. ESXi disk setup for SQL server VMs - advice sought
    By fox1977 in forum Thin Client and Virtual Machines
    Replies: 2
    Last Post: 29th January 2009, 11:34 AM
  5. Multiple VLAN setup on network
    By Rattler in forum Wireless Networks
    Replies: 9
    Last Post: 30th November 2007, 11:08 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •