OSPF Route Failover: Difference between revisions
m
no edit summary
mNo edit summary |
mNo edit summary |
||
Line 17: | Line 17: | ||
[[File:OSPF Route Failover Topology v1.png|center]] | [[File:OSPF Route Failover Topology v1.png|center]] | ||
==Configuring | ==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 as well as failover between them enabled, we can jump straight into configuring dynamic routes using OSPF. | ||
Line 29: | Line 29: | ||
#Enable vty | #Enable vty | ||
#Set Router ID (Can be set to any number or IP address) | #Set Router ID (Can be set to any number or IP address) | ||
#Set Generate a default external route as Default | #Set ''"Generate a default" external'' route as '''''Default''''' | ||
#Select Connected in Redistribution options | #Select '''''Connected''''' in ''"Redistribution options"'' | ||
===OSPF Interface settings=== | ===OSPF Interface settings=== | ||
Line 36: | Line 36: | ||
#Add 3 new interfaces for wan, WAN2 and WAN3 | #Add 3 new interfaces for wan, WAN2 and WAN3 | ||
#(Optional) | #(Optional) Set interface priorities and custom dead times | ||
#Leave other settings as default | |||
===OSPF Area settings=== | |||
---- | |||
#Create 3 new instances with different Area codes and enable them: | |||
##1005 | |||
##1004 | |||
##1003 | |||
===OSPF Networks settings=== | |||
---- | |||
#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: 172.16.110.0/24; Assign third area | |||
===Second router=== | |||
---- | |||
Second router should be configured analogously as the first router. | |||
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. | |||
==Testing Configuration== | |||
If everything was set up correctly, we should see routes to the second network through the main link in the routing table: | |||
Let us simulate Main link failure by disconnecting the cable and see how that affects routes to the second network: | |||
As we can see, dynamic routing automatically switched to the next available route. | |||
Let us connect a LAN device to each of the routers and see if they can communicate with each other |