Changes

no edit summary
Line 1: Line 1:  
__TOC__
 
__TOC__
 +
<p style="color:red">The information on this page is updated in accordance with the [https://wiki.teltonika-networks.com/view/FW_%26_SDK_Downloads'''00.07.08'''] firmware version.</p>
 
==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==
Line 16: Line 16:  
==Network Topology==
 
==Network Topology==
   −
[[File:OSPF Route Failover Topology v1.png|center]]
+
[[File:OSPF_WAN_TOPOLOGY_1.png|center|1100px]]
   −
== Configuring Routers==
+
==Configuration Example==
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'''.
+
===Router 1 Configuration===
 +
----
 +
====VLAN Configurtion====
 +
----
 +
Open router‘s WebUI and navigate to '''Network → VLAN Port Based''' configuration:
   −
'''Note:''' if dynamic routing is not available in WebUI, you can install an additional package by navigating to '''Services → Package Manager'''.
+
=====Port based VLAN=====
 +
----
 +
Add new VLANs by clicking [[File:Add Button.png|40x70px]] and Make following changes to 3 new VLANS:
   −
===OSPF - General settings===
+
# 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====
 
----
 
----
[[File:OSPF Route failover general settings v1.png|border|class=tlt-border|1075x1075px]]
+
Open router‘s '''WebUI''' and navigate to '''Network → WAN → WAN interfaces''' configuration:
#Enable Service
+
====Creating And Configuring WAN 1 Interface====
#Enable vty
+
----
#Set Router ID (Can be set to any number or IP address)
+
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
#Set ''"Generate a default" external'' route as '''''Default'''''
+
=====General Settings=====
#Select '''''Connected''''' in ''"Redistribution options"''
+
----
 +
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| 1100px]]
 +
=====Physical Settings=====
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.192'''
 +
[[File:OSPF_ROUTER2_WAN1_Physical.png|border|class=tlt-border|center| 1100px]]
   −
===OSPF Interface settings===
  −
----[[File:OSPF Route failover interface settings v1.png|border|class=tlt-border|1091x1091px]]
  −
#Add 3 new interfaces for wan, WAN2 and WAN3
  −
#(Optional) Set interface priorities and custom dead times
  −
#Leave other settings as default
     −
===OSPF Area settings===
+
====Creating And Configuring WAN 2 Interface====
----[[File:OSPF Route failover area settings v1.png|border|class=tlt-border|1089x1089px]]
+
----
#Create 3 new instances with different Area codes and enable them:
+
Add new WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
##1005
+
=====General Settings=====
## 1004
+
----
##1003
+
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| 1100px]]
 +
 
 +
=====Physical Settings=====
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.10'''
 +
[[File:OSPF_ROUTER2_WAN2_Physical.png|border|class=tlt-border|center]]
   −
===OSPF Networks settings===
+
====Creating And Configuring WAN 3 Interface====
----[[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 WAN by clicking [[File:Add Button.png|40x70px]] and Make following changes to new interface configurtion:
#Add new instance, Network: 10.0.110.0/24; Assign second area
+
=====General Settings=====
#Add new instance, Network: 172.16.110.0/24; Assign third area
+
----
 +
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|1100px]]
   −
===Second router===
+
=====Physical Settings=====
 
----
 
----
 +
Make the following changes:
 +
# Select interface: '''eth0.172'''
 +
[[File:OSPF_ROUTER2_WAN3_Physical.png|border|class=tlt-border|center|1100px]]
   −
Second router should be configured analogously as the first router.
+
====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| 1100px]]
   −
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.
+
=====OSPF interfaces=====
 +
----
 +
Add new OSPF interface for each WAN interface created by clicking [[File:Add Button.png|40x70px]]
   −
==Testing Configuration==
+
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| 1100px]]
 +
 
 +
=====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|1100px]]
 +
 
 +
=====OSPF networks=====
 +
----
 +
Add new OSPF network for each WAN interface by entering the area name and clicking [[File:Add Button.png|40x70px]]
 +
 
 +
Make following changes to the netwroks:
 +
# 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| 1100px]]
 +
 
 +
===Router 2 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|1100px]]
 +
=====Physical Settings=====
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.192'''
 +
[[File:OSPF_ROUTER2_WAN1_Physical.png|border|class=tlt-border|center|1100px]]
 +
 
 +
 
 +
====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| 1100px]]
 +
 
 +
=====Physical Settings=====
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.10'''
 +
[[File:OSPF_ROUTER2_WAN2_Physical.png|border|class=tlt-border|center| 1100px]]
 +
 
 +
====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|1100px]]
 +
 
 +
======Physical Settings======
 +
----
 +
Make the following changes:
 +
# Select interface: '''eth0.172'''
 +
[[File:OSPF_ROUTER2_WAN3_Physical.png|border|class=tlt-border|center|1100px]]
 +
 
 +
====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.2'''
 +
# Select External Route: '''Default'''
 +
# Select Redistribution Options: '''Connected'''
 +
[[File:OSPF_GLOBAL_ROUTER2.png|border|class=tlt-border|center|1100px]]
 +
 
 +
=====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| 1100px]]
 +
 
 +
=====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|1100px]]
 +
 
 +
=====OSPF networks=====
 +
----
 +
Add new OSPF network for each WAN interface by entering the area name and clicking [[File:Add Button.png|40x70px]]
 +
 
 +
Make following changes to the networks:
 +
# 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|1100px]]
 +
 
 +
==Configuration Testing==
    
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:
Line 72: Line 268:  
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.
   −
===Testing communication between LAN devices===
+
===Testing Communication Between LAN Devices===
 
----
 
----
   Line 85: Line 281:     
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]]