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 and bonding

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] xen and bonding
From: Mike Williams <mike.williams@xxxxxxxxxx>
Date: Tue, 20 Jun 2006 16:58:12 +0100
Delivery-date: Tue, 20 Jun 2006 08:58:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200606191852.24623.mike.williams@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Comodo
References: <200606191209.53329.mike.williams@xxxxxxxxxx> <200606191852.24623.mike.williams@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
On Monday 19 June 2006 18:52, Mike Williams wrote:
> I suppose my question really is, how can I run Xen in bridging mode without
> it moving interfaces/IPs/MACs around?
> I can't see anyway for getting the MII information into a VM when it isn't
> in fact attached to the actual physical interfaces at all.
> From reading the documentation, I understand (a little) why this moving of
> interfaces happens, but I don't need to be able to separately firewall the
> host, the VMs will all be on physically separate networks.
> So far my experiments with hacking network-bridge have been less then
> successful. Occasionally, for no apparent reason traffic in and out of the
> VM works, but mostly it doesn't.

In case anyone was wondering, I've sorted it.
Some of the issue was apparently down to network cards. I was using a 4 port 
d-link branded card (sundance module), I'm now using a pukker intel 2 port 
card (e1000) and 2 cheap-ass realteks. The traffic to/from the realteks can 
take a little while to get going.

In a copy of network-bridge I've changed the op_start() and op_stop() 
functions to:

op_start () {
        if [ "${bridge}" = "null" ] ; then
                return
        fi

        create_bridge ${bridge}

        add_to_bridge ${bridge} ${vif0}
        add_to_bridge2 ${bridge} ${netdev}

        if [ ${antispoof} = 'yes' ] ; then
                antispoofing
        fi
}

op_stop () {
        if [ "${bridge}" = "null" ]; then
                return
        fi
        if ! link_exists "$bridge"; then
                return
        fi

        ip link set ${bridge} down
        brctl delif ${bridge} ${netdev}
        brctl delif ${bridge} ${vif0}
        brctl delbr ${bridge}
}


-- 
Mike Williams
System Administration Manager - Comodo
Office Tel Europe: +44 (0) 161 8747070
Fax Europe: +44 (0) 161 8771767

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

<Prev in Thread] Current Thread [Next in Thread>