2 wan, 2 routers, 1 Lan

Hello,

I cant find in google my necessary information about router connecting to ospf.

I have 2 wan connections, for example ISP 1 with IP 192.11.11.230 and ISP2 with IP 10.10.11.2.
I have 2 routers in one LAN 192.168.1.0/24

Main idea is how to set up both routers when ISP1 goes down ISP 2 take an action and start give users internet.
I configure VRRP if i hade situation when Router 1 (192.168.1.1) go down (eletric outage) then Router 2 (192.168.1.2) continue give dhcp address and give user internet. When first Router comes up, all changes back.
VRRP Gateway - 192.168.1.254

Now my problem is with ospf configuration, i dont know how to configure routers.

I’m not sure what you’re hoping to get out of OSPF. I’ve mocked up a drawing. Could you clarify on it where stuff is plugged in and what your goal is?
MikroTik Forums 2 WAN 2 Routers_1.png

My situation is similar like this image who i attach.

2 wan 2 routers.JPG

Thanks, so what are you hoping to accomplish with OSPF? Share the default route for the different providers between the 2 routers so that in an the event of a down ISP the route changes?

As it my system are located in the countryside and ISP1 is not so stable but only one who can provide fast internet i need a backup link. So i choose LTE modem who is ISP 2. When ISP 1 go down Router 2 with attached ISP 2 are taking action and providing me internet as backup. When ISP 1 comes up it switch back to Router 1 as master.

Awesome, this is totally doable. You’ll want to send a default route from the router attached to ISP1 to the router attached to ISP2. That won’t be enough though. If you are connecting to ISP2 by DHCP (DHCP client) you’ll need to adjust the administrative distance of the route so that the OSPF route is preferred. By default static routes have an administrative distance of 1 and OSPF routes have an administrative distance of 90 so we will need to set to 91 or greater. Thankfully in RouterOS the DHCP client makes this easy.

If your ISP1 connection uses a DHCP client then skip this. If it is a static route then we need adjust it to check the gateway so we know when it goes down and it will be removed:

/ip route set 0 check-gateway=ping

Enter this on the router connected to ISP2 change 0 to the value of the DHCP client to your ISP:

/ip dhcp-client set 0 default-route-distance=254

With this ground work you are ready to configure OSPF normally to allow neighbors and exchange default routes. This part is the easiest. You’d do something like this on both routers:

/routing ospf instance set default distribute-default=if-installed-as-type-1
/routing ospf network add disabled=no area=backbone network=192.168.1.0/24

Hello, my network look like this:
2 router 2 ISP.jpg
All clients connect to MK1 through pppoe server (diferent pppoe profile depending of speed with route to ISP1), MK2 dhcp server disabled.
I want to create a profile in MK1 that have route to ISP2.

Can help me ?

Hello. Can you post your configuration? Seems like it similar to what I need, I’ve posted question here - http://forum.mikrotik.com/t/two-routers-two-wans-wan-and-lte-failover-help-needed/132921/1 , waiting for anyone who can help. Thank you.