Difference between revisions of "OSPF Route Failover New"

From Teltonika Networks Wiki
(41 intermediate revisions by the same user not shown)
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>
+
<span style="color: red;">The information in this page is updated in accordance with the <span style="color: #0054A6;"><b>RUTXXX_R_00.07.08.1</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==
Line 18: Line 18:
 
[[File:OSPF Route Failover Topology v1.png|center]]
 
[[File:OSPF Route Failover Topology v1.png|center]]
  
===Router1 Configuration===
+
===Router 1 Configuration===
 
----
 
----
====LAN as WAN Configuration====
+
===LAN as WAN Configuration===
 +
 
 +
====VLAN Configurtion====
 
----
 
----
====VLAN Configurtion=====
+
Open router‘s WebUI and navigate to '''Network → VLAN → Port Based''' configuration:
 +
 
 +
=====Port based VLAN=====
 
----
 
----
Open router‘s WebUI and navigate to Network → VLAN → Port Based configuration:
+
Add new VLANs by clicking [[File:Add Button.png|40x70px]] and Make following changes to 3 new VLANS:
  
Port based VLAN
+
# VLAN ID: '''192''' | lan1: '''Untagged''' | Lan2: '''Off'''      | Lan3: '''Off'''     
Add new VLANs by clicking [[File:Add Button.png|40x70px]] and Make following changes to 3 new VLANS:
+
# VLAN ID: '''10''' | lan1: '''Off'''      | Lan2: '''Untagged'''  | Lan3: '''Off'''     
 +
# VLAN ID: '''172''' | lan1: '''Off'''      | Lan2: '''Off'''      | Lan3: '''Untagged'''
  
# VLAN ID: '''1''' | lan1: '''Untagged''' | Lan2: '''Off'''      | Lan3: '''Tagged'''     
+
[[File:OSPF_WAN_1.png|border|class=tlt-border|1100px]]
# VLAN ID: '''2''' | lan1: '''Off'''      | Lan2: '''Tagged'''  | Lan3: '''Off'''     
 
# VLAN ID: '''3''' | lan1: '''Off'''      | Lan2: '''Off'''      | Lan3: '''Tagged'''
 
  
====WAN Interface Configurtion=====
+
====WAN Interface Configurtion====
 +
----
 +
Open router‘s '''WebUI''' and navigate to '''Network → WAN → WAN interfaces''' configuration:
 +
=====Creating And Configuring WAN 1 Interface=====
 +
----
 +
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
 +
======General Settings======
 +
----
 +
Make the following changes:
 +
# Enter Name: '''Wan1Main'''
 +
# Select Protocol: '''Static'''
 +
# Enter IPv4 address: '''192.168.110.1'''
 +
# Enter IPv4 net mask: '''255.255.255.252'''
 +
[[File:OSPF_ROUTER1_WAN1_General.png|border|class=tlt-border|center]]
 +
======Physical Settings======
 
----
 
----
 +
Make the following changes:
 +
# Select interface: '''eth0.192'''
 +
[[File:OSPF_ROUTER2_WAN1_Physical.png|border|class=tlt-border|center]]
  
====OSPF Configuration====
+
 
 +
=====Creating And Configuring WAN 2 Interface=====
 +
----
 +
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
 +
======General Settings======
 
----
 
----
 +
Make the following changes:
 +
# Enter Name: '''Wan2Backup'''
 +
# Select Protocol: '''Static'''
 +
# Enter IPv4 address: '''10.0.110.1'''
 +
# Enter IPv4 net mask: '''255.255.255.252'''
 +
[[File:OSPF_ROUTER1_WAN2_General.png|border|class=tlt-border|center]]
  
 +
======Physical Settings======
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.10'''
 +
[[File:OSPF_ROUTER2_WAN2_Physical.png|border|class=tlt-border|center]]
  
 +
=====Creating And Configuring WAN 3 Interface=====
 +
----
 +
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
 +
======General Settings======
 +
----
 +
Make the following changes:
 +
# Enter Name: '''Wan3Backup'''
 +
# Select Protocol: '''Static'''
 +
# Enter IPv4 address: '''172.16.110.1'''
 +
# Enter IPv4 net mask: '''255.255.255.252'''
 +
[[File:OSPF_ROUTER1_WAN3_General.png|border|class=tlt-border|center]]
  
 +
======Physical Settings======
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.172'''
 +
[[File:OSPF_ROUTER2_WAN3_Physical.png|border|class=tlt-border|center]]
  
 +
====OSPF Configuration====
 +
----
 +
Open router‘s '''WebUI''' and navigate to '''Network → Routing → Dynamic routes → OSPF''' configuration:
 +
=====OSPF - Global Settings=====
 +
----
 +
Make following changes:
 +
# Enable Service: '''on'''
 +
# Enable Vty: '''on'''
 +
# Enter Router ID: '''192.168.110.1'''
 +
# Select External Route: '''Default'''
 +
# Select Redistribution Options: '''Connected'''
 +
[[File:OSPF_GLOBAL_ROUTER1.png|border|class=tlt-border|center]]
  
 +
=====OSPF interfaces=====
 +
Add new OSPF interface for each WAN interface created by clicking [[File:Add Button.png|40x70px]]
 +
----
 +
Make following changes to new interfaces:
 +
# Select Interface: '''eth0.192 (WanMAIN)''' | Enable Interface: '''on'''
 +
# Select Interface: '''eth0.10 (Wan2Backup)''' | Enable Interface: '''on'''
 +
# Select Interface: '''eth0.172 (Wan3Backup)''' | Enable Interface: '''on'''
  
 +
[[File:OSPF_INTERFACES_1.png|border|class=tlt-border|center| 1000px]]
  
 +
=====OSPF area=====
 +
Add new OSPF area for each WAN interface by entering the area name and clicking [[File:Add Button.png|40x70px]]
 +
----
 +
Make following changes to the areas:
 +
# Name: '''First''' | Area: '''1005''' | Stub: '''off''' | '''on'''
 +
# Name: '''Second''' | Area: '''1004''' | Stub: '''off''' | '''on'''
 +
# Name: '''Third''' | Area: '''1003''' | Stub: '''off''' | '''on'''
 +
[[File:OSPF_AREA_1.png|border|class=tlt-border|center]]
  
===Router2 Configuration===
+
=====OSPF networks=====
 +
Add new OSPF network for each WAN interface by entering the area name and clicking [[File:Add Button.png|40x70px]]
 
----
 
----
====LAN as WAN Configuration====
+
Make following changes to the areas:
----
+
# Name: '''WAN1''' | Network: '''192.168.110.0/30''' | Area: '''First''' | '''on'''
====OSPF Configuration====
+
# Name: '''WAN2''' | Network: '''10.0.110.0/30''' | Area: '''Second''' | '''on'''
 +
# Name: '''WAN3''' | Netwrok: '''172.16.110.0/30''' | Area: '''Third''' | '''on'''
 +
[[File:OSPF_NETWORKS_1.png|border|class=tlt-border|center]]
 +
 
 +
===Router 2 Configuration===
 
----
 
----
  
 +
===LAN as WAN Configuration===
  
 +
====VLAN Configurtion====
 +
----
 +
Open router‘s WebUI and navigate to '''Network → VLAN → Port Based''' configuration:
  
 +
=====Port based VLAN=====
 +
----
 +
Add new VLANs by clicking [[File:Add Button.png|40x70px]] and Make following changes to 3 new VLANS:
  
 +
# VLAN ID: '''192''' | lan1: '''Untagged''' | Lan2: '''Off'''      | Lan3: '''Off'''     
 +
# VLAN ID: '''10''' | lan1: '''Off'''      | Lan2: '''Untagged'''  | Lan3: '''Off'''     
 +
# VLAN ID: '''172''' | lan1: '''Off'''      | Lan2: '''Off'''      | Lan3: '''Untagged'''
  
 +
[[File:OSPF_WAN_1.png|border|class=tlt-border|1100px]]
  
 +
====WAN Interface Configurtion====
 +
----
 +
Open router‘s '''WebUI''' and navigate to '''Network → WAN → WAN interfaces''' configuration:
 +
=====Creating And Configuring WAN 1 Interface=====
 +
----
 +
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
 +
======General Settings======
 +
----
 +
Make the following changes:
 +
# Enter Name: '''Wan1Main'''
 +
# Select Protocol: '''Static'''
 +
# Enter IPv4 address: '''192.168.110.2'''
 +
# Enter IPv4 net mask: '''255.255.255.252'''
 +
[[File:OSPF_ROUTER2_WAN1_General.png|border|class=tlt-border|center]]
 +
======Physical Settings======
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.192'''
 +
[[File:OSPF_ROUTER2_WAN1_Physical.png|border|class=tlt-border|center]]
  
  
 +
=====Creating And Configuring WAN 2 Interface=====
 +
----
 +
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
 +
======General Settings======
 +
----
 +
Make the following changes:
 +
# Enter Name: '''Wan2Backup'''
 +
# Select Protocol: '''Static'''
 +
# Enter IPv4 address: '''10.0.110.2'''
 +
# Enter IPv4 net mask: '''255.255.255.252'''
 +
[[File:OSPF_ROUTER2_WAN2_General.png|border|class=tlt-border|center]]
  
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.
+
======Physical Settings======
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.10'''
 +
[[File:OSPF_ROUTER2_WAN2_Physical.png|border|class=tlt-border|center]]
  
OSPF can be configured in WebUI, by navigating to '''Network → Routing → Dynamic Routing → OSPF'''.
+
=====Creating And Configuring WAN 3 Interface=====
 +
----
 +
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
 +
======General Settings======
 +
----
 +
Make the following changes:
 +
# Enter Name: '''Wan3Backup'''
 +
# Select Protocol: '''Static'''
 +
# Enter IPv4 address: '''172.16.110.2'''
 +
# Enter IPv4 net mask: '''255.255.255.252'''
 +
[[File:OSPF_ROUTER2_WAN3_General.png|border|class=tlt-border|center]]
  
'''Note:''' if dynamic routing is not available in WebUI, you can install an additional package by navigating to '''Services → Package Manager'''.
+
======Physical Settings======
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.172'''
 +
[[File:OSPF_ROUTER2_WAN3_Physical.png|border|class=tlt-border|center]]
  
===OSPF - General settings===
+
====OSPF Configuration====
 +
----
 +
Open router‘s '''WebUI''' and navigate to '''Network → Routing → Dynamic routes → OSPF''' configuration:
 +
=====OSPF - Global Settings=====
 
----
 
----
[[File:OSPF Route failover general settings v1.png|border|class=tlt-border|1075x1075px]]
+
Make following changes:
#Enable Service
+
# Enable Service: '''on'''
#Enable vty
+
# Enable Vty: '''on'''
#Set Router ID (Can be set to any number or IP address)
+
# Enter Router ID: '''192.168.110.2'''
#Set ''"Generate a default" external'' route as '''''Default'''''
+
# Select External Route: '''Default'''
#Select '''''Connected''''' in ''"Redistribution options"''
+
# Select Redistribution Options: '''Connected'''
 +
[[File:OSPF_GLOBAL_ROUTER2.png|border|class=tlt-border|center]]
  
===OSPF Interface settings===
+
=====OSPF interfaces=====
----[[File:OSPF Route failover interface settings v1.png|border|class=tlt-border|1091x1091px]]
+
Add new OSPF interface for each WAN interface created by clicking [[File:Add Button.png|40x70px]]
#Add 3 new interfaces for wan, WAN2 and WAN3
+
----
#(Optional) Set interface priorities and custom dead times
+
Make following changes to new interfaces:
#Leave other settings as default
+
# Select Interface: '''eth0.192 (WanMAIN)''' | Enable Interface: '''on'''
 +
# Select Interface: '''eth0.10 (Wan2Backup)''' | Enable Interface: '''on'''
 +
# Select Interface: '''eth0.172 (Wan3Backup)''' | Enable Interface: '''on'''
  
===OSPF Area settings===
+
[[File:OSPF_INTERFACES_1.png|border|class=tlt-border|center| 1000px]]
----[[File:OSPF Route failover area settings v1.png|border|class=tlt-border|1089x1089px]]
 
#Create 3 new instances with different Area codes and enable them:
 
##1005
 
## 1004
 
##1003
 
  
===OSPF Networks settings===
+
=====OSPF area=====
----[[File:OSPF Route failover networks settings v1.png|border|class=tlt-border|1096x1096px]]
+
----
#Add new instance, Network: 192.168.110.0/24; Assign first area
+
Add new OSPF area for each WAN interface by entering the area name and clicking [[File:Add Button.png|40x70px]]
#Add new instance, Network: 10.0.110.0/24; Assign second area
+
----
#Add new instance, Network: 172.16.110.0/24; Assign third area
+
Make following changes to the areas:
 +
# Name: '''First''' | Area: '''1005''' | Stub: '''off''' | '''on'''
 +
# Name: '''Second''' | Area: '''1004''' | Stub: '''off''' | '''on'''
 +
# Name: '''Third''' | Area: '''1003''' | Stub: '''off''' | '''on'''
 +
[[File:OSPF_AREA_1.png|border|class=tlt-border|center]]
  
===Second router===
+
=====OSPF networks=====
 
----
 
----
 
+
Add new OSPF network for each WAN interface by entering the area name and clicking [[File:Add Button.png|40x70px]]
Second router should be configured analogously as the first router.
+
----
 
+
Make following changes to the areas:
OSPF will now set routes dynamically depending on availability of the connected links, therefore if Main link fails, traffic will route through a backup link.
+
# Name: '''WAN1''' | Network: '''192.168.110.0/30''' | Area: '''First''' | '''on'''
 +
# Name: '''WAN2''' | Network: '''10.0.110.0/30''' | Area: '''Second''' | '''on'''
 +
# Name: '''WAN3''' | Netwrok: '''172.16.110.0/30''' | Area: '''Third''' | '''on'''
 +
[[File:OSPF_NETWORKS_1.png|border|class=tlt-border|center]]
  
 
==Testing Configuration==
 
==Testing Configuration==
Line 127: Line 278:
  
 
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]]
 
[[Category:Connection backup]]
 

Revision as of 15:16, 8 August 2024

Summary

The information in this page is updated in accordance with the RUTXXX_R_00.07.08.1 firmware version.

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

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.

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 WAN2 interface must be able to reach RUT2 WAN2 interface;
  • RUT1 WAN3 interface must be able to reach RUT2 WAN3 interface.

Network Topology

OSPF Route Failover Topology v1.png

Router 1 Configuration


LAN as WAN Configuration

VLAN Configurtion


Open router‘s WebUI and navigate to Network → VLAN → Port Based configuration:

Port based VLAN

Add new VLANs by clicking Add Button.png and Make following changes to 3 new VLANS:

  1. VLAN ID: 192 | lan1: Untagged | Lan2: Off | Lan3: Off
  2. VLAN ID: 10 | lan1: Off | Lan2: Untagged | Lan3: Off
  3. VLAN ID: 172 | lan1: Off | Lan2: Off | Lan3: Untagged

OSPF WAN 1.png

WAN Interface Configurtion


Open router‘s WebUI and navigate to Network → WAN → WAN interfaces configuration:

Creating And Configuring WAN 1 Interface

Add new WAN by clicking Add Button.png and Make following changes to new interface configurtion:

General Settings

Make the following changes:

  1. Enter Name: Wan1Main
  2. Select Protocol: Static
  3. Enter IPv4 address: 192.168.110.1
  4. Enter IPv4 net mask: 255.255.255.252
OSPF ROUTER1 WAN1 General.png
Physical Settings

Make the following changes:

  1. Select interface: eth0.192
OSPF ROUTER2 WAN1 Physical.png


Creating And Configuring WAN 2 Interface

Add new WAN by clicking Add Button.png and Make following changes to new interface configurtion:

General Settings

Make the following changes:

  1. Enter Name: Wan2Backup
  2. Select Protocol: Static
  3. Enter IPv4 address: 10.0.110.1
  4. Enter IPv4 net mask: 255.255.255.252
OSPF ROUTER1 WAN2 General.png
Physical Settings

Make the following changes:

  1. Select interface: eth0.10
OSPF ROUTER2 WAN2 Physical.png
Creating And Configuring WAN 3 Interface

Add new WAN by clicking Add Button.png and Make following changes to new interface configurtion:

General Settings

Make the following changes:

  1. Enter Name: Wan3Backup
  2. Select Protocol: Static
  3. Enter IPv4 address: 172.16.110.1
  4. Enter IPv4 net mask: 255.255.255.252
OSPF ROUTER1 WAN3 General.png
Physical Settings

Make the following changes:

  1. Select interface: eth0.172
OSPF ROUTER2 WAN3 Physical.png

OSPF Configuration


Open router‘s WebUI and navigate to Network → Routing → Dynamic routes → OSPF configuration:

OSPF - Global Settings

Make following changes:

  1. Enable Service: on
  2. Enable Vty: on
  3. Enter Router ID: 192.168.110.1
  4. Select External Route: Default
  5. Select Redistribution Options: Connected
OSPF GLOBAL ROUTER1.png
OSPF interfaces

Add new OSPF interface for each WAN interface created by clicking Add Button.png


Make following changes to new interfaces:

  1. Select Interface: eth0.192 (WanMAIN) | Enable Interface: on
  2. Select Interface: eth0.10 (Wan2Backup) | Enable Interface: on
  3. Select Interface: eth0.172 (Wan3Backup) | Enable Interface: on
OSPF INTERFACES 1.png
OSPF area

Add new OSPF area for each WAN interface by entering the area name and clicking Add Button.png


Make following changes to the areas:

  1. Name: First | Area: 1005 | Stub: off | on
  2. Name: Second | Area: 1004 | Stub: off | on
  3. Name: Third | Area: 1003 | Stub: off | on
OSPF AREA 1.png
OSPF networks

Add new OSPF network for each WAN interface by entering the area name and clicking Add Button.png


Make following changes to the areas:

  1. Name: WAN1 | Network: 192.168.110.0/30 | Area: First | on
  2. Name: WAN2 | Network: 10.0.110.0/30 | Area: Second | on
  3. Name: WAN3 | Netwrok: 172.16.110.0/30 | Area: Third | on
OSPF NETWORKS 1.png

Router 2 Configuration


LAN as WAN Configuration

VLAN Configurtion


Open router‘s WebUI and navigate to Network → VLAN → Port Based configuration:

Port based VLAN

Add new VLANs by clicking Add Button.png and Make following changes to 3 new VLANS:

  1. VLAN ID: 192 | lan1: Untagged | Lan2: Off | Lan3: Off
  2. VLAN ID: 10 | lan1: Off | Lan2: Untagged | Lan3: Off
  3. VLAN ID: 172 | lan1: Off | Lan2: Off | Lan3: Untagged

OSPF WAN 1.png

WAN Interface Configurtion


Open router‘s WebUI and navigate to Network → WAN → WAN interfaces configuration:

Creating And Configuring WAN 1 Interface

Add new WAN by clicking Add Button.png and Make following changes to new interface configurtion:

General Settings

Make the following changes:

  1. Enter Name: Wan1Main
  2. Select Protocol: Static
  3. Enter IPv4 address: 192.168.110.2
  4. Enter IPv4 net mask: 255.255.255.252
OSPF ROUTER2 WAN1 General.png
Physical Settings

Make the following changes:

  1. Select interface: eth0.192
OSPF ROUTER2 WAN1 Physical.png


Creating And Configuring WAN 2 Interface

Add new WAN by clicking Add Button.png and Make following changes to new interface configurtion:

General Settings

Make the following changes:

  1. Enter Name: Wan2Backup
  2. Select Protocol: Static
  3. Enter IPv4 address: 10.0.110.2
  4. Enter IPv4 net mask: 255.255.255.252
OSPF ROUTER2 WAN2 General.png
Physical Settings

Make the following changes:

  1. Select interface: eth0.10
OSPF ROUTER2 WAN2 Physical.png
Creating And Configuring WAN 3 Interface

Add new WAN by clicking Add Button.png and Make following changes to new interface configurtion:

General Settings

Make the following changes:

  1. Enter Name: Wan3Backup
  2. Select Protocol: Static
  3. Enter IPv4 address: 172.16.110.2
  4. Enter IPv4 net mask: 255.255.255.252
OSPF ROUTER2 WAN3 General.png
Physical Settings

Make the following changes:

  1. Select interface: eth0.172
OSPF ROUTER2 WAN3 Physical.png

OSPF Configuration


Open router‘s WebUI and navigate to Network → Routing → Dynamic routes → OSPF configuration:

OSPF - Global Settings

Make following changes:

  1. Enable Service: on
  2. Enable Vty: on
  3. Enter Router ID: 192.168.110.2
  4. Select External Route: Default
  5. Select Redistribution Options: Connected
OSPF GLOBAL ROUTER2.png
OSPF interfaces

Add new OSPF interface for each WAN interface created by clicking Add Button.png


Make following changes to new interfaces:

  1. Select Interface: eth0.192 (WanMAIN) | Enable Interface: on
  2. Select Interface: eth0.10 (Wan2Backup) | Enable Interface: on
  3. Select Interface: eth0.172 (Wan3Backup) | Enable Interface: on
OSPF INTERFACES 1.png
OSPF area

Add new OSPF area for each WAN interface by entering the area name and clicking Add Button.png


Make following changes to the areas:

  1. Name: First | Area: 1005 | Stub: off | on
  2. Name: Second | Area: 1004 | Stub: off | on
  3. Name: Third | Area: 1003 | Stub: off | on
OSPF AREA 1.png
OSPF networks

Add new OSPF network for each WAN interface by entering the area name and clicking Add Button.png


Make following changes to the areas:

  1. Name: WAN1 | Network: 192.168.110.0/30 | Area: First | on
  2. Name: WAN2 | Network: 10.0.110.0/30 | Area: Second | on
  3. Name: WAN3 | Netwrok: 172.16.110.0/30 | Area: Third | on
OSPF NETWORKS 1.png

Testing Configuration

If everything was set up correctly, we should see routes to the second network through the main link in the routing table:

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:

OSPF Route failover routing table backup v1.png

As we can see, dynamic routing automatically switched to the next available route.

Testing communication between LAN devices


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 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:

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.