From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIEeP-0006um-1x for qemu-devel@nongnu.org; Sun, 30 Sep 2012 04:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIEeO-0002h6-0q for qemu-devel@nongnu.org; Sun, 30 Sep 2012 04:13:20 -0400 Received: from mail-qa0-f52.google.com ([209.85.216.52]:58832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIEeN-0002h1-T4 for qemu-devel@nongnu.org; Sun, 30 Sep 2012 04:13:19 -0400 Received: by qabg24 with SMTP id g24so797528qab.4 for ; Sun, 30 Sep 2012 01:13:19 -0700 (PDT) MIME-Version: 1.0 From: Mulyadi Santosa Date: Sun, 30 Sep 2012 15:12:39 +0700 Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] failed to fail over between two bonded interface under user mode network stack List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Hi all... Recently, I did experiments to see what bonding can do. Therefore I run Qemu using following command: qemu-system-i386 -m 512 -hda ./centos.qcow2 \ -net nic,model=e1000,vlan=0 -net user,vlan=0 \ -net nic,model=e1000,vlan=0 -net user,vlan=0 \ The guest is CentOS 6.3. Host is Linux Mint 13 kernel 3.2.0-31-generic, using: $ qemu-system-i386 --version QEMU emulator version 1.0 (qemu-kvm-1.0), Copyright (c) 2003-2008 Fabrice Bellard Inside the guest, I activate the bond interface using following command: modprobe bonding mode=1 miimon=100 fail_over_mac=1 num_grat_arp=10 primary=eth0 Then I enslave both eth0 and eth1 inside guest: ifenslave bond0 eth0 eth1 I give static IP to the bond0: ifconfig bond0 10.0.2.10 netmask 255.255.255.0 In this case, eth0 is 10.0.2.15 and eth1 is 10.0.2.16 I check that bond0 is correctly configured, then I ping 10.0.2.2. So far so good. But when I take eth0 down: ifconfig eth0 down Eth1 takes over as active slave, but pinging to 10.0.2.2. What am I missing here? Just for note, I do relatively similar thing inside VirtualBox, only that there I use host only networking. It works fine: failover happens and ping continues when I disable eth0. Thanks in advance for your help. -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com