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.
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:
Hello, my network look like this:
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.