I have 2 Router that connected with 2 local link. I want to make failover procedure using bonding methode on mikrotik Router B.
My Question is :
How to make this design working with using bonding methode. No routing.
Secondary Link (wireless) used if Primary Link fail and back to Primary Link if Primary Link available.
Router A have ip 192.168.0.1/30 (as gateway router)
Router B have ip 192.168.0.2/30 (Mikrotik)
RouterB side is very simple, because each line is connected to separate inerfaces.
But routers B case is more complicated. I think there is two options:
Create one tunnel through primary link from routerA to routerB, and another one through secondary link. After that you can set bonding on tunnel interfaces.
Other option is to connect one of links to different VLAN group and set bonding on VLAN interfaces. But it is possible that this method won’t work correctly.
Router A is Cisco Router with 1 fastethernet that connected to catalyst cisco manageable switch. Router A To Router B have 2 local link which have same vlan id in catalyst (id=10). I’m not exactly known about Cisco configuration (Router A), because I don’t have any access. But, information about topologi as describe in picture.
Admin of Router A just give me instruction about unplug and plug the ethernet connector from 2 my local link to their catalist port that have same vlan group.
The problem for the bonding, that you cannot achieve it with one router (one device), another device(s) should be used too.
You may setup routing load-balancing on the MikroTik RouterB for LAN network, that will load-balance data from the network over these two links.
we just want to use secondary link (wireless) in emergency only, not for balanced trafic, this day i have configure my Mikrotik Router B with bonding and fail over link can working properly, but… i can’t see the fix delay for switching from primary to secondary link, this is about 1sec until 40sec. I don’t know my configuration is correct or not.
How do you use bonding (together with the switch) ?
very easy configuration is the following,
main gateway to Ether2 and check-gateway=ping,
secondary gateway to Ether1 address and distance=2.
If I’m not mistaken switching should occur after 5/6 unsuccessfull pings (as main gateway will be disabled then).
I doubt that you have this subnet for both Ether1 and Ether2 interface.
I was thinking about Ether1 as main gateway for RouterB and Ether2 as secondary one.
No, I’m not asking about router interface, but I’m asking for the second device that terminates bonding interface on the other end (Is it switch ?).
As you need second end device for bonding, it does not work with bonding configured only on one router.
I’m not sure this is correct configuration or not, i’m just looking for failover with 2 lokal link shown in picture and i found “bonding” documentation in Google. So, i want to try “bonding” methode in my Mikrotik Router. As my subject, i want to know right configuration. Maybe i’m wrong, but i have tested today and seemly working evenly there are unconstantly time for switching from primary link to secondary link. i don’t know why, maybe sombody know.
i would go with sergejs suggestion with simply routed network.
also, you can create small OSPF network and set up link weights, so, when everything operates - your fiber is used, when fiber fails routes through fiber are removed and your wireless kicks in automatically