[ovirt-users] CARP Fails on Bond mode=1

Jorick Astrego jorick at netbulae.eu
Mon Jul 18 12:19:12 UTC 2016


Hi,

I tried sending this last week, but somehow the list blackholes my 
messages....

You could try to add " net.inet.carp.drop_echoed=1" to pfsense in 
/etc/sysctl.conf ?

It is an old fix for VMWare and FreeBSD. I am not able to test it at the 
moment but I can see it's not in the config of the latest version of 
PFSense.

Or maybe better:

https://doc.pfsense.org/index.php/CARP_Configuration_Troubleshooting

    Client Port Issues

    If a physical CARP cluster is connected to a switch with an ESX box
    using multiple ports on the ESX box (lagg group or similar), and
    only certain devices/IPs are reachable by the target VM, then the
    port group settings in ESX may need adjusted to set the load
    balancing for the group to hash based on IP, not the originating
    interface.

    Side effects of having that set incorrectly include:

      * Traffic only reaching the target VM in promisc mode on its NIC
      * Inability to reach the CARP IP from the target VM when the
        "real" IP of the primary firewall is reachable
      * Port forwards or other inbound connections to the target VM work
        from some IPs and not others.


So you could try with bonding option "xmit_hash_policy=layer2+3" and see 
if that helps...

Kind regards,
Jorick Astrego


On 07/13/2016 03:59 PM, Matt . wrote:
> As addition: I get the same result using mode=4, only when I use
> multiple VLANS on the interface.
>
> 2016-07-13 15:58 GMT+02:00 Matt .<yamakasi.014 at gmail.com>:
>> Hi Pavel,
>>
>> Thanks for your update. I also saw that the post are both online but I
>> thought the second nic only advertises the mac so the switch does not
>> get confused.
>>
>> The issue might be that i do VRRP, so the bond is connected to two
>> switches, they are not stacked, only trunked as that's what VRRP
>> requires and works well on the side where there is only one VLAN on
>> the Host interface.
>>
>> It just goes wrong on multiple vlans.
>>
>> This is what I see everywhere.
>>
>> Mode 1 (active-backup)
>> This mode places one of the interfaces into a backup state and will
>> only make it active if the link is lost by the active interface. Only
>> one slave in the bond is active at an instance of time. A different
>> slave becomes active only when the active slave fails. This mode
>> provides fault tolerance.
>>
>> It's sure I need to get my traffic back on my sending port, so that is
>> why the arp for the passive port was there I thought.
>>
>> Are there other modes that should be working on VRRP in your understanding ?
>>
>> Thanks a lot,
>>
>> Matt
>>
>>
>>
>> 2016-07-13 15:43 GMT+02:00 Pavel Gashev<Pax at acronis.com>:
>>> In mode=1 the active interface sends traffic, but both interfaces accept incoming traffic. Hardware switches send broadcast/multicast/unknown destination MACs to all ports, including the passive interface. So packet sent from the active interface can be received back from the passive interface. FreeBSD CARP just would go mad when it receives its own packets.
>>>
>>> I believe if you get Linux implementation, it will work well in the same network setup. I use keepalived in oVirt VMs with bonded network, and have no issues.
>>>
>>> -----Original Message-----
>>> From: "Matt ."<yamakasi.014 at gmail.com>
>>> Date: Wednesday 13 July 2016 at 15:54
>>> To: Pavel Gashev<Pax at acronis.com>, users<users at ovirt.org>
>>> Subject: Re: [ovirt-users] CARP Fails on Bond mode=1
>>>
>>> How can it lead into packet duplication when the passive should not be
>>> active and only it's mac-address should be visible on the switch to
>>> prevent confusion on the switch ?
>>>
>>> For a VRRP setup on the switch there is no other option then mode=1 as
>>> far as I know ?
>>>
>>> 2016-07-13 14:50 GMT+02:00 Pavel Gashev<Pax at acronis.com>:
>>>> I would say that bonding breaks CARP somehow. In example mode=1 can lead to packet duplication, so pfsense can receive it's own packets. Try firewall in pfsense all incomming packets that have the same source MAC address as pfsense.
>>>>
>>>> -----Original Message-----
>>>> From: "Matt ."<yamakasi.014 at gmail.com>
>>>> Date: Wednesday 13 July 2016 at 15:29
>>>> To: Pavel Gashev<Pax at acronis.com>
>>>> Subject: Re: [ovirt-users] CARP Fails on Bond mode=1
>>>>
>>>> Hi Pavel,
>>>>
>>>> No it's Pfsense, so FreeBSD.
>>>>
>>>> Is there something different there ?
>>>>
>>>>
>>>>
>>>> 2016-07-13 13:59 GMT+02:00 Pavel Gashev<Pax at acronis.com>:
>>>>> Matt,
>>>>>
>>>>> How is CARP implemented? Is it OpenBSD?
>>>>>
>>>>> -----Original Message-----
>>>>> From:<users-bounces at ovirt.org>  on behalf of "Matt ."<yamakasi.014 at gmail.com>
>>>>> Date: Wednesday 13 July 2016 at 12:42
>>>>> Cc: users<users at ovirt.org>
>>>>> Subject: Re: [ovirt-users] CARP Fails on Bond mode=1
>>>>>
>>>>> Hi Pavel,
>>>>>
>>>>> This is done and used without the Bond before.
>>>>>
>>>>> Now I applied a bond it goes wrong and I'm searching but can't find a
>>>>> thing about it.
>>>>>
>>>>>
>>>>>
>>>>> 2016-07-13 11:03 GMT+02:00 Pavel Gashev<Pax at acronis.com>:
>>>>>> Matt,
>>>>>>
>>>>>> In order to use CARP/VRRP in a VM you have to disable MAC spoofing prevention.
>>>>>> http://lists.ovirt.org/pipermail/users/2015-May/032839.html
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From:<users-bounces at ovirt.org>  on behalf of "Matt ."<yamakasi.014 at gmail.com>
>>>>>> Date: Tuesday 12 July 2016 at 21:58
>>>>>> To: users<users at ovirt.org>
>>>>>> Subject: [ovirt-users] CARP Fails on Bond mode=1
>>>>>>
>>>>>> Hi guys,
>>>>>>
>>>>>> I have been testing bonding with a vm connected to the network on this
>>>>>> bond mode=1 (vlans on top of it) where the vm uses a carp IP for
>>>>>> failover.
>>>>>>
>>>>>> It seems that when the VM which holds the Carp IP and so is Master you
>>>>>> can ping both IP's, so interface IP and Carp IP, but you cannot
>>>>>> throw/route any traffic over it.
>>>>>>
>>>>>> You can route traffic over the interface IP of the Carp Slave.
>>>>>>
>>>>>> Is this known or just not possible ?
>>>>>>
>>>>>> I hope it's a "bug" :)
>>>>>>
>>>>>> Thanks,
>>>>>>
>>>>>> Matt
>>>>>>
>>>>>>
>>>>>>      





Met vriendelijke groet, With kind regards,

Jorick Astrego

Netbulae Virtualization Experts 

----------------

	Tel: 053 20 30 270 	info at netbulae.eu 	Staalsteden 4-3A 	KvK 08198180
 	Fax: 053 20 30 271 	www.netbulae.eu 	7547 TA Enschede 	BTW NL821234584B01

----------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20160718/fe389c3a/attachment-0001.html>


More information about the Users mailing list