Difference between revisions of "OSPF Route Failover"
PauliusRug (talk | contribs) |
m |
||
(8 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
__TOC__ | __TOC__ | ||
==Summary== | ==Summary== | ||
− | |||
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 11: | Line 10: | ||
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 18: | Line 17: | ||
[[File:OSPF Route Failover Topology v1.png|center]] | [[File:OSPF Route Failover Topology v1.png|center]] | ||
− | == Configuring | + | ==Configuring First Router== |
− | 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 as well as failover between them enabled, we can jump straight into configuring dynamic routes using OSPF. |
− | OSPF can be configured in WebUI, by navigating to | + | 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. | |
− | |||
===OSPF - General settings=== | ===OSPF - General settings=== | ||
---- | ---- | ||
− | + | ||
#Enable Service | #Enable Service | ||
#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 | + | #Set Generate a default external route as Default |
− | #Select | + | #Select Connected in Redistribution options |
===OSPF Interface settings=== | ===OSPF Interface settings=== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
---- | ---- | ||
− | + | #Add 3 new interfaces for wan, WAN2 and WAN3 | |
− | + | #(Optional) | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 18:21, 6 December 2022
Main Page > General Information > Configuration Examples > Connection backup > OSPF Route FailoverSummary
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
Configuring First Router
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.
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.
OSPF - General settings
- Enable Service
- Enable vty
- Set Router ID (Can be set to any number or IP address)
- Set Generate a default external route as Default
- Select Connected in Redistribution options
OSPF Interface settings
- Add 3 new interfaces for wan, WAN2 and WAN3
- (Optional)