Hello to all.
Completely new to Mikrotik RouterOS, and with a far from complete understanding of networking (so please be gentle if I ask too simple/basic questions and/or I use some incorrect terminology).
I spent some time in the last few days reading many forum posts and trying to have a basic understanding of the capabilities of the RouterOS, after - while looking for a possible better solution to my current failover setup (none or manual/caveman) - I learned from posts and links by Sob on this thread:
http://forum.mikrotik.com/t/connecting-to-multiple-devices-with-same-ip-address/159052/1
how it is seemingly possible through some RouterOS “magic” with nat/firewall/mangle to have more than one device with the same IP connected to the network.
My current situation (small office/shop operation), is connection to the internet with three ISP providers, all of them provide their own (proprietary/locked) modem/router, so all of them (each of them is a gateway) have 192.168.1.1/255.255.255.0 IP address, to the network are connected a bunch of the usual stuff, a few PC’s, printers and a few other “proprietary” devices (POS and POS-like).
So I have all the devices on a 192.168.1.x/255.255.255.0 LAN with gateway pointing to 192.168.1.1, no DHCP (all devices have static IP’s), no VLANS or similar “advanced” routing/switching.
The Internet connections are as follows:
- Primary: FTTC (vdsl)
- Secondary: “old” aDSL
- Tertiary: FWA (Lte 3G/4G)
Only one of the three routers/modems is physically connected to the network at any given time.
The primary connection is usually very stable and gives no problems, but (it happened three times this year) we had faults on the ISP side, leaving us without connection on the primary for one or two days each time, in two cases the secondary worked, in one case both primary and secondary were down (copper cables cut during some road works) and we had to use the tertiary.
So right now my “caveman” method of failover is to simply unplug the rj45 (coming out of the “main switch”) from the back of the modem/router that has no connection and insert it in one of the other modem/router, power this latter on and see that internet works.
I have no access to the settings of the three modem/routers (I can change them only calling the ISP assistance and they change settings remotely, but it is not “fast”, it takes from a couple hours up to one day or more), and as well changing the settings on the POS-like devices needs a call to other assistance services (three different ones), but even if I had access to these settings (like I have for the PC’s and printers) it would take time and need some (basic) knowledge that other pwople/colleagues simply miss, while the unplugging and re-plugging can be done by everyone.
For the reasons above, we must assume that this 192.168.1.1 is carved in stone and cannot be changed.
It would be needed a (hypothetical) device, that could act (still manually) as a RJ45 physical switcher box A/B/C/D similar to:
http://www.cablesonline.com/abrjswitbox3.html
but that could be instead automated via some ping (recursive) or netwatch or similar, or some other script running on a PC.
I actually found something (loosely) similar, a switcher box that can be piloted via RS232 but that besides not being exactly cheap (US$290), would add a whole new level of complication:
https://www.vpi.us/network-devices/gigabit-ethernet-switch-1044
I think (but may well be wrong) that if I introduce between the “main” LAN switch and the three modem/routers two Mikrotik routers (possibly RB750GR3?) I can do the following:
-
have the first router get the 192.168.1.1 address on the LAN and (say) 172.16.0.1 on the WAN and have some scripts/netwatch to connect to main/failover1/failover2 to three addresses like 172.16.0.10, 172.16.0.20, 172.16.0.30
-
have the second router be 172.16.0.2 on the Wan (that exists only between the two routers) and mapping/natting the three 192.168.1.1 fixed address modem routers to the three addresses 172.16.0.10, 172.16.0.20, 172.16.0.30
If any of the two Mikrotik routers fail (or both), I can still use the old method of unplugging and plugging directly the modem/router to the switch, bypassing the Mikrotik routers completely.
Or (another idea, maybe folly) I could have 4 devices, 1 Mikrotik like the first router above and three other (any) small routers one of each of the cables connecting each modem/router, simply routing from 172.16.0.10 to 192.168.1.1, from 172.16.0.20 to 192.168.1.1 and from 172.16.0.30 to 192.168.1.1
Do I make sense? (or am I completely off and better/easier solutions exist)
If the approach can work (or if any other suggested ones works) then I will probably need some help in choosing the right hardware/routers and configuring the whole stuff.
Thanks in advance for any reply/suggestion to solve the problem.
jaclaz