I am completely new to MikroTik world, but I plan to stay in it for a while, so expect to see me around these boards more often I am not new to networking in general however, I come here from Cisco world I still live everyday.
Currently I would kill for a quick help regarding my first, and very simple project, if I understand correctly. I need to set up 750G router for my new client. I have previous configuration on file, and all I need to do is configure fail-over (or load balancing if possible) between two WAN connections (wireless and dsl).
I am stuck at a beginning. How can I open the old config file? Its not in text format like Im used to. I need the info from old config so I know the basics about the new setup, like IP addresses and such.
Also, I have no idea how to configure fail-over. I was planning on using Winbox from a laptop hooked up the the router, but I don`t know where to go from there?
Please feel free to point me to a relevant info where I can find instructions for setting this up. I am not afraid of learning on my own, I just don`t have enough time this time
The official manual is on the wiki. It is linked in the forum header.
There are two ways to save a configuration - a binary blob, and a text file. You have the former. Read the wiki page on configuration management to find out how to restore it. Do a â/exportâ (also explained on that page) to get a text backup. Then reset the configuration as binary backups are for the exact same device only.
For just WAN failover just set up two default routes, one with a higher distance - just like in IOS. The text backup will have a section for â/ip routeâ that should make sense to you. If you need both links live read the wiki on PCC. It has an easy to understand example.
To configure the router use Winbox initially, it will discover the router on layer 2. Click on the discovered MAC address. Default user is âadminâ, default password is blank. Winbox has a terminal button to get a CLI. After it has an IP address you can use Winbox on layer 3, or just SSH.
If you understand networking RouterOS is fairly easy to wrap your head around. Donât hesitate to come back with more specific questions.
Thank you for your reply! I still didnt try anything, Id like to research as much as possible before I nail it the first time.
I received the text file config from the router, and by seeing it, I see DSL line is still not configured. I plan on first configuring it using Winbox (should be easy), and than again generate text config file and see what is changed. It would be ideal if I could just edit the text file with few commands adding failover, and restore the router using modified text config.
I found lots of failover articles on wiki, many of them being quite confusing to me at this stage.. I saw some netwatch scripts, PCC, and the one I like the most:
This one is very simple and intuitive. However, it uses IP addresses, which wont work in my case since other WAN is DSL, with dynamic IPs. I wonder if this same commands could be implemented using interface names? Like:
I looks like I cant go with this simple 2-gateways different metric config, since I cant use WAN2 interface name in âadd gatewayâ command. Just to remind, my WAN2 interface is DSL line, which is dynamic, and I can`t use its IP when setting this up.
I saw some simple solutions with configuring OSPF, with two networks and different costs. Wonder if this could work in scenario when I have one static WAN, and other dynamic. Any toughs?
It would be ideal to have this configured as simple as possible. If I start messing around with scripts and such, it would be counter-effective considering my Mikrotik experience..
Thank you fewi, your answers really helped me a lot! Indeed, putting PPoE name in â/ip route add gatewayâ works. I know this is pretty basic stuff, but there is no substitute for experience, right?
I wasn`t still able to test this, but in case its not working, or client wants something else, I will go with Netwatch script, or OSPF thing. My personal opinion is that IPSLA-like function would be ideal for scenarios like this..
And Im really starting to like RouterOS syntax, Winbox tool, and overall experience. I hope I will get the chance to get more involved into it.
Glad youâre having fun. Iâm a Cisco guy by trade, too - 90% of my time is spent in Cisco gear. I mainly use RouterOS where Cisco is too expensive, or doesnât have a solution, like Hotspots. RouterOS is a neat Swiss army knife - itâs not always the ideal tool, but it can be used on nearly any task, and fits in your pocket as a router or AP.
Netwatch is an OK IPSLA solution if all you need is ICMP monitoring. I actually like PCC for being able to use both circuits at the same time. Itâs kind of like a class map that randomly matches traffic, but consistently so. Then a policy map sets next hop policies, but there is a default route to fall through if the interface the service policy is applied to is down, since all the classification isnât dependent on ingress interface. At least thatâs the best Cisco equivalent I can come up with.
I am trying to do the same. But I cant get the routing to work.
when the RB411U is used as a stand-alone and set up with a DHCP server I can use it as a normal router and browse the internet.
My aim is to use 192.168.0.203 as a failover gateway if the DLS line goes down. But I canât get the routing to work - and maybe there is a much easier solution?
When I try to set it up without the DHCP server I canât make it work. I have set up the PC with fixed network settings and with gateway= 192.168.0.203.
I just added the address 192.168.0.203/24 to ether1 and set up NAT (scrnat outinterface = the PPP client interface).
The PPP client is set up to add a default route and connects fine and the default routing looks ok.
However when connecting my PC (192.168.0.10/24 GW 192.168.0.203 DNS 192.168.0.203) I am not able to connect to the internet.
This is what I have set up - but still not able to connec to the internet through GW 192.168.0.203
[admin@MikroTik] > interface pr
Flags: D - dynamic, X - disabled, R - running, S - slave
NAME TYPE MTU L2MTU
0 R lan ether 1500 1526
1 R O2 ppp-out 1500
[admin@MikroTik] > ip add pr
Flags: X - disabled, I - invalid, D - dynamic
ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.203/24 192.168.0.0 192.168.0.255 lan
1 D 160.218.xxx.xxx/32 10.112.xxx.xxx 0.0.0.0 O2
[admin@MikroTik] > ip route pr
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit