carp though bridge with vmd

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

carp though bridge with vmd

Mischa-2
Hi All,

Is there a way to get carp working through a bridge?
I am currently testing to see whether I can have 2 vmd VMs on different hosts use carp between them.
The current state that I am currently at is, both VMs are master.

Setup on both hosts is the same, bridge1 with em0 as interface.

# vm.conf
switch "uplink_bridge1" {
        interface bridge1
}
vm "lb1" {
        disable
        disk "/home/mischa/vmm/lb1.img"
        interface tap {
                switch "uplink_bridge1"
        }
}

lb1 carp config:
inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 100

lb2 carp config:
inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 110

Is there anything that can be configured on the bridge side?

Mischa

Reply | Threaded
Open this post in threaded view
|

Re: carp though bridge with vmd

David Gwynne-5
Is there a shared ethernet network between the bridges on each host?

> On 10 Dec 2018, at 01:56, Mischa <[hidden email]> wrote:
>
> Hi All,
>
> Is there a way to get carp working through a bridge?
> I am currently testing to see whether I can have 2 vmd VMs on different hosts use carp between them.
> The current state that I am currently at is, both VMs are master.
>
> Setup on both hosts is the same, bridge1 with em0 as interface.
>
> # vm.conf
> switch "uplink_bridge1" {
>        interface bridge1
> }
> vm "lb1" {
>        disable
>        disk "/home/mischa/vmm/lb1.img"
>        interface tap {
>                switch "uplink_bridge1"
>        }
> }
>
> lb1 carp config:
> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 100
>
> lb2 carp config:
> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 110
>
> Is there anything that can be configured on the bridge side?
>
> Mischa
>

Reply | Threaded
Open this post in threaded view
|

Re: carp though bridge with vmd

Mischa-2
Hi David,

Yes there is. Currently the machine are directly connected to each other on em0, the VMs are able to reach each other.

VM1 -> bridge1 -> em0 — em0 <- bridge1 <- VM2

Mischa

--

> On 10 Dec 2018, at 03:00, David Gwynne <[hidden email]> wrote:
>
> Is there a shared ethernet network between the bridges on each host?
>
>> On 10 Dec 2018, at 01:56, Mischa <[hidden email]> wrote:
>>
>> Hi All,
>>
>> Is there a way to get carp working through a bridge?
>> I am currently testing to see whether I can have 2 vmd VMs on different hosts use carp between them.
>> The current state that I am currently at is, both VMs are master.
>>
>> Setup on both hosts is the same, bridge1 with em0 as interface.
>>
>> # vm.conf
>> switch "uplink_bridge1" {
>>       interface bridge1
>> }
>> vm "lb1" {
>>       disable
>>       disk "/home/mischa/vmm/lb1.img"
>>       interface tap {
>>               switch "uplink_bridge1"
>>       }
>> }
>>
>> lb1 carp config:
>> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 100
>>
>> lb2 carp config:
>> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 110
>>
>> Is there anything that can be configured on the bridge side?
>>
>> Mischa
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: carp though bridge with vmd

Reyk Floeter-2
In reply to this post by Mischa-2
Hi,

as a general note for virtual switches and clouds that don’t support CARP due to restrictions on multicast and/or additional MACs: I use carppeer and lladdr of the parent interface in such cases.

That doesn’t mean that you should need it with vmd and bridge and we have to look into this.

Reyk

> Am 09.12.2018 um 16:56 schrieb Mischa <[hidden email]>:
>
> Hi All,
>
> Is there a way to get carp working through a bridge?
> I am currently testing to see whether I can have 2 vmd VMs on different hosts use carp between them.
> The current state that I am currently at is, both VMs are master.
>
> Setup on both hosts is the same, bridge1 with em0 as interface.
>
> # vm.conf
> switch "uplink_bridge1" {
>        interface bridge1
> }
> vm "lb1" {
>        disable
>        disk "/home/mischa/vmm/lb1.img"
>        interface tap {
>                switch "uplink_bridge1"
>        }
> }
>
> lb1 carp config:
> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 100
>
> lb2 carp config:
> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 110
>
> Is there anything that can be configured on the bridge side?
>
> Mischa
>

Reply | Threaded
Open this post in threaded view
|

Re: carp though bridge with vmd

Mischa-2
Hi Reyk,

If there is anything I can supply let me know, but I guess it's simple enough to replicate.
Let me check carppeer anyway.

Mischa


> On 10 Dec 2018, at 09:55, Reyk Floeter <[hidden email]> wrote:
>
> Hi,
>
> as a general note for virtual switches and clouds that don’t support CARP due to restrictions on multicast and/or additional MACs: I use carppeer and lladdr of the parent interface in such cases.
>
> That doesn’t mean that you should need it with vmd and bridge and we have to look into this.
>
> Reyk
>
>> Am 09.12.2018 um 16:56 schrieb Mischa <[hidden email]>:
>>
>> Hi All,
>>
>> Is there a way to get carp working through a bridge?
>> I am currently testing to see whether I can have 2 vmd VMs on different hosts use carp between them.
>> The current state that I am currently at is, both VMs are master.
>>
>> Setup on both hosts is the same, bridge1 with em0 as interface.
>>
>> # vm.conf
>> switch "uplink_bridge1" {
>>       interface bridge1
>> }
>> vm "lb1" {
>>       disable
>>       disk "/home/mischa/vmm/lb1.img"
>>       interface tap {
>>               switch "uplink_bridge1"
>>       }
>> }
>>
>> lb1 carp config:
>> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 100
>>
>> lb2 carp config:
>> inet 192.168.0.100 255.255.255.0 NONE vhid 1 pass xxxx carpdev vio0 advbase 10 advskew 110
>>
>> Is there anything that can be configured on the bridge side?
>>
>> Mischa
>>
>