Difference between revisions of "Policy Based Routing"

From Teltonika Networks Wiki
Line 36: Line 36:
  
 
[[File:PBR_VLAN.png|border|class=tlt-border|center|1000x243px]]
 
[[File:PBR_VLAN.png|border|class=tlt-border|center|1000x243px]]
 +
  
 
===Configuring Different LAN Networks===
 
===Configuring Different LAN Networks===
Line 54: Line 55:
 
----
 
----
  
Add new LAN netwroks by clicking [[File:Add Button.png|40x70px]] and Make following changes:
+
Add new LAN netwrok by clicking [[File:Add Button.png|40x70px]] and Make following changes:
  
 
====General Settings====
 
====General Settings====
Line 62: Line 63:
 
# Enter Name : '''LAN_VLAN_3'''
 
# Enter Name : '''LAN_VLAN_3'''
 
# Enter IPV4 address: '''192.168.3.1'''
 
# Enter IPV4 address: '''192.168.3.1'''
 +
# Select IPV4 netmask: '''255.255.255.0'''
 
# Enable DHCPv4: '''on'''
 
# Enable DHCPv4: '''on'''
 
+
[[File:PBS LAN3 GENERAL.png|border|class=tlt-border|center]]
 
====Physical Settings====
 
====Physical Settings====
 
----
 
----
 
Make the following changes:
 
Make the following changes:
 
# Select Interface : '''eth0.3'''
 
# Select Interface : '''eth0.3'''
 +
 +
[[File:PBS LAN3 PHYSICAL.png|border|class=tlt-border|center]]
 
----
 
----
  
Add new LAN netwroks by clicking [[File:Add Button.png|40x70px]] and Make following changes:
+
Add new LAN netwrok by clicking [[File:Add Button.png|40x70px]] and Make following changes:
  
 
====General Settings====
 
====General Settings====
Line 78: Line 82:
 
# Enter Name : '''LAN_VLAN_5'''
 
# Enter Name : '''LAN_VLAN_5'''
 
# Enter IPV4 address: '''192.168.5.1'''
 
# Enter IPV4 address: '''192.168.5.1'''
 +
# Select IPV4 netmask: '''255.255.255.0'''
 
# Enable DHCPv4: '''on'''
 
# Enable DHCPv4: '''on'''
  

Revision as of 09:17, 31 May 2024

The information on this page is updated in accordance with the 00.07.07.1 firmware version .

Introduction


Policy-based routing (PBR) is a technique used in computer networking to direct network packets based on defined criteria beyond the standard destination-based routing. Unlike traditional routing, which forwards packets solely based on their destination address, PBR allows administrators to customize routing decisions according to various factors such as source address, type of service, protocol, or application.

With policy-based routing, network administrators can implement specific rules or policies to dictate the path that packets should take through the network. This flexibility enables organizations to optimize traffic flow, prioritize certain types of traffic, enforce security measures, and manage network resources more efficiently.

Prerequisites & Topology


Before proceeding with the confuration, ensure that all requirements are met:

  1. Before starting you need to have 3 different WAN connections. In this case we are going to use: Wi-fi WAN, Wired WAN and Mobile WAN.
PBS model.png

Configuration


If you're having trouble finding this page or some of the parameters described here on your device's WebUI, you should turn on "Advanced WebUI" mode. You can do that by clicking the "Advanced" button, located at the top of the WebUI.

Networking rutos manual webui basic advanced mode 75.gif

Configuring VLANs


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:

  1. VLAN ID: 1 | lan1: Untagged | Lan2: Off | Lan3: Off | lan4: Untagged | Wan: Off
  2. VLAN ID: 3 | lan1: Off | Lan2: Untagged | Lan3: Off | lan4: Off | Wan: Off
  3. VLAN ID: 5 | lan1: Off | Lan2: Off | Lan3: Untagged | lan4: Off | Wan: Off


PBR VLAN.png


Configuring Different LAN Networks


Open router’s WebUI → Network → LAN click Pencil2.pngon current available LAN interface configuration:

General Settings


Make the following changes:

  1. Enter Name : LAN_VLAN_ETH0
PBS LAN1 NAME.png

Physical Settings


Make the following changes:

  1. Select Interface : eth0
PBS LAN1 PHYSICAL.png

Add new LAN netwrok by clicking Add Button.png and Make following changes:

General Settings


Make the following changes:

  1. Enable Interface: on
  2. Enter Name : LAN_VLAN_3
  3. Enter IPV4 address: 192.168.3.1
  4. Select IPV4 netmask: 255.255.255.0
  5. Enable DHCPv4: on
PBS LAN3 GENERAL.png

Physical Settings


Make the following changes:

  1. Select Interface : eth0.3
PBS LAN3 PHYSICAL.png

Add new LAN netwrok by clicking Add Button.png and Make following changes:

General Settings


Make the following changes:

  1. Enable Interface: on
  2. Enter Name : LAN_VLAN_5
  3. Enter IPV4 address: 192.168.5.1
  4. Select IPV4 netmask: 255.255.255.0
  5. Enable DHCPv4: on

Physical Settings


Make the following changes:

  1. Select Interface : eth0.5

End result should look something like this:

Configuring Advanced Static Routes