Jump to content

OSPF Route Failover: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
__TOC__
__TOC__
==Summary==
==Summary==
<span style="color: red;">The information in this page is updated in accordance with the <span style="color: #0054A6;"><b>RUTXXX_R_00_07_02</b></span> firmware version.</span>


In this example we will setup redundant links using dynamic routing where 2 routers will be connected using multiple links directly – Main WAN and two Backup WANs in order to make sure LAN devices on each end would be available in case Main links fail.  
In this example we will setup redundant links using dynamic routing where 2 routers will be connected using multiple links directly – Main WAN and two Backup WANs in order to make sure LAN devices on each end would be available in case Main links fail.  


==Configuration Overview & Prerequisites==
== Configuration Overview & Prerequisites==


For this example, we will need two routers with 3 separate WAN interfaces. It can either be Wired links or Private Mobile networks. In this example we will use 3 wired links for the simplicity of testing. However, there can be other variations, such as 1 Wired link and 2 Mobile links.
For this example, we will need two routers with 3 separate WAN interfaces. It can either be Wired links or Private Mobile networks. In this example we will use 3 wired links for the simplicity of testing. However, there can be other variations, such as 1 Wired link and 2 Mobile links.
Line 10: Line 11:
Each WAN on both ends has to be in the same private network. In other words:
Each WAN on both ends has to be in the same private network. In other words:
*RUT1 WAN1 interface must be able to reach RUT2 WAN1 interface;
*RUT1 WAN1 interface must be able to reach RUT2 WAN1 interface;
*RUT1 WAN2 interface must be able to reach RUT2 WAN2 interface;
* RUT1 WAN2 interface must be able to reach RUT2 WAN2 interface;
*RUT1 WAN3 interface must be able to reach RUT2 WAN3 interface.
*RUT1 WAN3 interface must be able to reach RUT2 WAN3 interface.


Line 17: Line 18:
[[File:OSPF Route Failover Topology v1.png|center]]
[[File:OSPF Route Failover Topology v1.png|center]]


==Configuring Routers==
== Configuring Routers==
We will not go too deep into basics. Assuming we already have VLANs set up to have three different links between routers according to the topology, we can jump straight into configuring dynamic routes using OSPF.
We will not go too deep into basics. Assuming we already have VLANs set up to have three different links between routers according to the topology, we can jump straight into configuring dynamic routes using OSPF.


OSPF can be configured in WebUI, by navigating to Network > Routing > Dynamic Routing > OSPF.
OSPF can be configured in WebUI, by navigating to '''Network Routing Dynamic Routing OSPF'''.
Note: if dynamic routing is not available in WebUI, you can install an additional package by navigating to Services > Package Manager.
 
'''Note:''' if dynamic routing is not available in WebUI, you can install an additional package by navigating to '''Services Package Manager'''.


===OSPF - General settings===
===OSPF - General settings===
----[[File:OSPF Route failover general settings v1.png|1136x1136px]]
----
[[File:OSPF Route failover general settings v1.png|border|class=tlt-border|1136x1136px]]
#Enable Service
#Enable Service
#Enable vty
#Enable vty
Line 32: Line 35:


===OSPF Interface settings===
===OSPF Interface settings===
----[[File:OSPF Route failover interface settings v1.png|1123x1123px]]
----[[File:OSPF Route failover interface settings v1.png|border|class=tlt-border|1123x1123px]]
#Add 3 new interfaces for wan, WAN2 and WAN3
#Add 3 new interfaces for wan, WAN2 and WAN3
#(Optional) Set interface priorities and custom dead times
#(Optional) Set interface priorities and custom dead times
Line 38: Line 41:


===OSPF Area settings===
===OSPF Area settings===
----[[File:OSPF Route failover area settings v1.png|1149x1149px]]
----[[File:OSPF Route failover area settings v1.png|border|class=tlt-border|1149x1149px]]
#Create 3 new instances with different Area codes and enable them:
#Create 3 new instances with different Area codes and enable them:
##1005
##1005
##1004
## 1004
##1003
##1003


===OSPF Networks settings===
===OSPF Networks settings===
----[[File:OSPF Route failover networks settings v1.png|1152x1152px]]
----[[File:OSPF Route failover networks settings v1.png|border|class=tlt-border|1152x1152px]]
#Add new instance, Network: 192.168.110.0/24; Assign first area
#Add new instance, Network: 192.168.110.0/24; Assign first area
#Add new instance, Network: 10.0.110.0/24; Assign second area
#Add new instance, Network: 10.0.110.0/24; Assign second area
Line 73: Line 76:


Let us connect a LAN device to each of the routers and see if they can communicate with each other, for this example, we will connect laptop to the first router and another laptop to the second router:
Let us connect a LAN device to each of the routers and see if they can communicate with each other, for this example, we will connect laptop to the first router and another laptop to the second router:
* Laptop 1 IP: 192.168.1.220
*Laptop 1 IP: '''''192.168.1.220'''''
*Laptop 2 IP: 192.168.2.5
*Laptop 2 IP: '''''192.168.2.5'''''


Let us run a ping command from the first laptop to the second and disconnect the Main link cable midway through:
Let us run a ping command from the first laptop to the second and disconnect the Main link cable midway through:
Line 82: Line 85:


We can see that after a short delay, laptop on the second router continued communication, which means dynamic routes are being set correctly.
We can see that after a short delay, laptop on the second router continued communication, which means dynamic routes are being set correctly.
==See Also==
*[[VLAN Set Up]]