qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] failed to fail over between two bonded interface under user mode network stack
@ 2012-09-30  8:12 Mulyadi Santosa
  2012-10-01 15:57 ` Mulyadi Santosa
  0 siblings, 1 reply; 2+ messages in thread
From: Mulyadi Santosa @ 2012-09-30  8:12 UTC (permalink / raw)
  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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] failed to fail over between two bonded interface under user mode network stack
  2012-09-30  8:12 [Qemu-devel] failed to fail over between two bonded interface under user mode network stack Mulyadi Santosa
@ 2012-10-01 15:57 ` Mulyadi Santosa
  0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2012-10-01 15:57 UTC (permalink / raw)
  To: qemu-devel

anybody could help?

On Sun, Sep 30, 2012 at 3:12 PM, Mulyadi Santosa
<mulyadi.santosa@gmail.com> wrote:
> 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



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-01 15:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-30  8:12 [Qemu-devel] failed to fail over between two bonded interface under user mode network stack Mulyadi Santosa
2012-10-01 15:57 ` Mulyadi Santosa

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).