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] network-bridge breaks networking when eth0:1 is added

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] network-bridge breaks networking when eth0:1 is added
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Mon, 27 Apr 2009 08:11:00 +0700
Delivery-date: Sun, 26 Apr 2009 18:11:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <VA.000037d5.03bee088@xxxxxxxxxxxxxxxxxx>
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: <VA.000037d4.03999d78@xxxxxxxxxxxxxxxxxx> <VA.000037d5.03bee088@xxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Mon, Apr 27, 2009 at 7:27 AM, Kai Schaetzl <maillists@xxxxxxxxxxxxx> wrote:
> Kai Schaetzl wrote on Mon, 27 Apr 2009 01:47:07 +0200:
>
>> Which is rather weird, isn't it?
>
> Ok, the reason for this is simple. It seems that once the bridge is up a
> xend restart does not restart the network-bridge script. If I run the
> network-bridge script manually it breaks eth0 each time, not just the
> first time. It even breaks it with "network-bridge stop".

For non-standard networking setup (like the one where you have eth0:1)
it'd be much easier if you let the OS handle the bridge and have
something like (network-script /bin/true) on xend.sxp. So for example
you can have these files

/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-xenbr0
/etc/sysconfig/network-scripts/ifcfg-xenbr0:1

which would create the bridge xenbr0 with eth0 as physical device and
create a virtual interface on xenbr0:1 where you can assign a second
IP address.

An advantage of such approach is that you don't have to depend on xend
for network setup. You can restart xend anytime you want and
networking would still be OK.

Let me know if you need more detail on this setup (like what those
file's contents look like).

Regards,

Fajar

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