Line 3: |
Line 3: |
| | | |
| ==Introduction== | | ==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 to customize routing decisions according to various factors. | | 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 to customize routing decisions according to various factors. |
| | | |
Line 9: |
Line 9: |
| | | |
| ==Prerequisites & Topology== | | ==Prerequisites & Topology== |
− | ----
| + | |
| | | |
| '''Before proceeding with the confuration, ensure that all requirements are met:''' | | '''Before proceeding with the confuration, ensure that all requirements are met:''' |
Line 15: |
Line 15: |
| # Before starting you need to have 3 different WAN connections. In this case we are going to use: '''[https://wiki.teltonika-networks.com/view/WiFi_WAN_example Wi-fi WAN]''', '''Wired WAN''' and '''Mobile WAN'''.These interfaces have to be preconfigured. | | # Before starting you need to have 3 different WAN connections. In this case we are going to use: '''[https://wiki.teltonika-networks.com/view/WiFi_WAN_example Wi-fi WAN]''', '''Wired WAN''' and '''Mobile WAN'''.These interfaces have to be preconfigured. |
| | | |
− | [[File:PBR111.png|border|class=tlt-border|center]] | + | [[File:PBR1111.png|border|class=tlt-border|center]] |
| | | |
| ==Configuration== | | ==Configuration== |
− | ----
| + | |
| {{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer | | {{Template:Networking_rutos_manual_basic_advanced_webui_disclaimer |
| | series = RUTX | | | series = RUTX |
Line 95: |
Line 95: |
| ===Configuring Policy Based Routing=== | | ===Configuring Policy Based Routing=== |
| ---- | | ---- |
− | Open WebUI → Network → Routing → Policy based routing → Add new instance and create new instances for each available WAN in this case Wi-Fi WAN, Wired-WAN and Mobile: | + | Open '''WebUI → Network → Routing → Policy based routing → Add new instance''' and create new instances for each available WAN in this case Wi-Fi WAN, Wired-WAN and Mobile: |
| | | |
| ====Creating Wifi Wan Routing Table==== | | ====Creating Wifi Wan Routing Table==== |
Line 177: |
Line 177: |
| ---- | | ---- |
| | | |
− | Connect end device to physical port that is assingned to different routing policy. Open cmd and run this command: '''tracert 8.8.8.8''', three physical ports that we assigned to diffrent Vlans route to 8.8.8.8 should be using different gateways and public addresses visit to check if address changes [https://whatismyipaddress.com/ whatismyipaddress]. | + | Connect end device to physical port that is assingned to different routing policy. Open cmd and run this command: '''tracert 8.8.8.8''', three physical ports that we assigned to diffrent Vlans route to 8.8.8.8 should be using different gateways and public addresses visit to check if address changes [https://whatismyipaddress.com/ whatismyipaddress]. |
| + | |
| + | Public IP addresses that are used in my topology: |
| + | # WiFi WAN: '''78.xxx.xxx.xxx''' |
| + | # Wired WAN: '''213.xxx.xxx.xxx''' |
| + | # Mobile WAN: '''84.xxx.xxx.xxx''' |
| | | |
| | | |
Line 183: |
Line 188: |
| ---- | | ---- |
| [[File:Test1.png|border|class=tlt-border|center]] | | [[File:Test1.png|border|class=tlt-border|center]] |
| + | |
| + | [[File:ISP1.png|border|class=tlt-border|center|800x600px]] |
| | | |
| ====Physical Port 2 Test Result==== | | ====Physical Port 2 Test Result==== |
| ---- | | ---- |
| [[File:Test22.png|border|class=tlt-border|center]] | | [[File:Test22.png|border|class=tlt-border|center]] |
| + | |
| + | [[File:ISP2.png|border|class=tlt-border|center|800x600px]] |
| | | |
| ====Physical Port 3 Test Result==== | | ====Physical Port 3 Test Result==== |
| ---- | | ---- |
| [[File:Test33.png|border|class=tlt-border|center]] | | [[File:Test33.png|border|class=tlt-border|center]] |
| + | |
| + | [[File:ISP3.png|border|class=tlt-border|center|800x600px]] |
| | | |
| ===Policy Based Routing on a single Host=== | | ===Policy Based Routing on a single Host=== |
| ---- | | ---- |
| ====Single Host Routing Topology==== | | ====Single Host Routing Topology==== |
− | [[File:PBR222.png|border|class=tlt-border|center|1000x800px]] | + | [[File:PBR22222.png|border|class=tlt-border|center|1000x800px]] |
− | ----
| |
| | | |
| ====Wired WAN Routing Policy Priority Change==== | | ====Wired WAN Routing Policy Priority Change==== |
Line 212: |
Line 222: |
| | | |
| =====Creating Single Node Routing Table Over WifiWan===== | | =====Creating Single Node Routing Table Over WifiWan===== |
| + | ---- |
| Add new instance: | | Add new instance: |
| | | |
Line 244: |
Line 255: |
| ---- | | ---- |
| [[File:POLICY_ROUTE.png|border|class=tlt-border|center]] | | [[File:POLICY_ROUTE.png|border|class=tlt-border|center]] |
| + | |
| + | [[File:ISP1.png|border|class=tlt-border|center|800x600px]] |
| + | |
| + | ==External links== |
| + | |
| + | #https://wiki.teltonika-networks.com/view/Splitting_Network_Traffic_Via_Multiple_Interfaces |