Jump to content

OSPF Route Failover: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 18: Line 18:


==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 as well as failover between them enabled, 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.
Line 24: Line 24:


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


===OSPF Interface settings===
===OSPF Interface settings===
----
----[[File:OSPF Route failover interface settings v1.png|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 40: Line 38:


===OSPF Area settings===
===OSPF Area settings===
----
----[[File:OSPF Route failover area settings v1.png|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
Line 48: Line 45:


===OSPF Networks settings===
===OSPF Networks settings===
----
----[[File:OSPF Route failover networks settings v1.png|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 64: Line 60:


If everything was set up correctly, we should see routes to the second network through the main link in the routing table:
If everything was set up correctly, we should see routes to the second network through the main link in the routing table:
[[File:OSPF Route failover routing table main v1.png]]


Let us simulate Main link failure by disconnecting the cable and see how that affects routes to the second network:
Let us simulate Main link failure by disconnecting the cable and see how that affects routes to the second network:
[[File:OSPF Route failover routing table backup v1.png]]


As we can see, dynamic routing automatically switched to the next available route.
As we can see, dynamic routing automatically switched to the next available route.
Line 72: Line 72:
----
----


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 a laptop to the first router and RUT240 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 IP: 192.168.1.220
* Laptop 1 IP: 192.168.1.220
*RUT240 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:
 
[[File:OSPF Route failover ping testing v1.png]]
 
 
We can see that after a short delay, laptop on the second router continued communication, which means dynamic routes are being set correctly.