qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Mulyadi Santosa <mulyadi.santosa@gmail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] failed to fail over between two bonded interface under user mode network stack
Date: Sun, 30 Sep 2012 15:12:39 +0700	[thread overview]
Message-ID: <CAGdaadYrL5N44GH1syamb2ZSQVWNj2Vq0Y3==KNg0grXzXv3Cw@mail.gmail.com> (raw)

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

             reply	other threads:[~2012-09-30  8:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-30  8:12 Mulyadi Santosa [this message]
2012-10-01 15:57 ` [Qemu-devel] failed to fail over between two bonded interface under user mode network stack Mulyadi Santosa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGdaadYrL5N44GH1syamb2ZSQVWNj2Vq0Y3==KNg0grXzXv3Cw@mail.gmail.com' \
    --to=mulyadi.santosa@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).