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] question re xen bridging: how would I enable different n

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] question re xen bridging: how would I enable different names for xen bridge and dom0 ethernet interface?
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Sep 2011 16:59:59 +0100
Delivery-date: Fri, 30 Sep 2011 09:04:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E85D32F.6080807@xxxxxxxxxxxxx>
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: <4E85D32F.6080807@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Benjamin Weaver wrote:
I have a 2-node xen cluster set up on 2 identical Linux Squeeze boxes. An ifconfig on one of the boxes is shown below.

The only bridge configuration on our system is this:

(network-script 'network-bridge netdev=eth0')

eth0 shows up as a bridge. A 'brctl showmacs eth0' indicates as much. I would expect this, given my network-script line given above.

OK, look back (not too far) in the archives and you'll find plenty of advice to forget the Xen scripts (which I believe are being deprecated) and do it in the OS. Debian has good tools for setting up bridges, and all it takes is this in /etc/network/interfaces :

auto ethext
iface ethext inet static
  bridge_ports pethext
  address a.b.c.d
  netmask 255.255.255.0

You can rename your interfaces by editing /etc/udev/rules.d/70-persistent-net-rules

Note that the interfaces file does *not* have an entry for pethext.

1. Is eth0 in my configuration, both the dom0 logical interface and the xen bridge? It would have to be, which I do not understand, since I don't think a bridge can be an interface and vice versa.

Yes.
What you are missing is that you can treat a bridge as an interface, give it an IP address, and shunt packets through it. This is the normal way to set one up.

3. how would I configure the system so that the dom0 logical ethernet interface is named differently from the xen bridge?
3a. how, for example, would I name my bridge xenbr0?

See above - I have a bridge called ethext, and a physical interface called pethext. These can be anything you want (within reason).

--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

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

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