qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] failed to fail over between two bonded interface under


From: Mulyadi Santosa
Subject: Re: [Qemu-devel] failed to fail over between two bonded interface under user mode network stack
Date: Mon, 1 Oct 2012 22:57:25 +0700

anybody could help?

On Sun, Sep 30, 2012 at 3:12 PM, Mulyadi Santosa
<address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]