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] Random swap of interfaces at domU startup

To: <xen-users@xxxxxxxxxxxxxxxxxxx>, Frédéric VANNIÈRE <frederic@xxxxxxxxxxx>
Subject: Re: [Xen-users] Random swap of interfaces at domU startup
From: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>
Date: Thu, 18 Jan 2007 12:13:29 -0700
Delivery-date: Thu, 18 Jan 2007 11:13:18 -0800
Envelope-to: www-data@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/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>
References: <3B768AE8-E926-4C42-8B6E-B1A49EB21E20@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Somtimes I had the exactly situation as you. I found Xen Linux sometimes swap eth0 and eth1 for no reason. For example, the port0 on the NIC is connected to a DHCP server while the port 1 on the NIC is using static IP address. Sometimes i found Xen just swapped eth0 and eth1.

Don't know why.

Liang

----- Original Message ----- From: "Frédéric VANNIÈRE" <frederic@xxxxxxxxxxx>
To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Thursday, January 18, 2007 12:01 PM
Subject: [Xen-users] Random swap of interfaces at domU startup


Hello,

I'm using xen 3.0.4 with a custom kernel (with drbd) and
quite often xen inverts eth0 and eth1. In order to have correct
interfaces I need to restart the domU

The virtual interfaces vifX.0 and vifX.1 should be connected
to xenbr0 and xenbr1 respectively but sometimes they are connected
to xenbr1 and xenbr0.





configuration file:
-------------------
kernel = "/boot/vmlinuz-2.6-xenU"
memory = 2048
name = "xxxx-secours"
disk = [ "phy:xen_data/xxxx-secours,hda1,w",
         "phy:xen_data/xxxx-secours_swap,hda2,w",
         "phy:xen_data/xxxx-secours_drbd,hda3,w"]
root = "/dev/hda1 ro"
vif = [
    "mac=00:26:3E:7B:0B:22,bridge=xenbr0,ip=192.168.2.144",
    "mac=00:26:3E:7B:0B:23,bridge=xenbr1,ip=10.1.0.20",
      ]
gateway = "192.168.2.1"
netmask = "255.255.255.0"
hostname = "xxxx-secours"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"


xm list
-------
Name                          ID   Mem VCPUs      State   Time(s)
Domain-0                       0   257     1     r-----   7338.2
xxxx-secours                 11  2048      1     -b----    354.9
yyyy-secours                  13   728     1     -b----    437.0



brctl show all  when OK
-----------------------
xenbr0          8000.feffffffffff       no              peth0
                                                        vif0.0
                                                        vif11.0
                                                        vif13.0
xenbr1          8000.feffffffffff       no              peth1
                                                        vif0.1
                                                        vif11.1
                                                        vif13.1



brctl show all  when inverted
------------------------------
xenbr0          8000.feffffffffff       no              peth0
                                                        vif0.0
                                                        vif11.0
                                                        vif13.1
xenbr1          8000.feffffffffff       no              peth1
                                                        vif0.1
                                                        vif11.1
                                                        vif13.0






_______________________________________________
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