Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15394

Beginner Basics • Help Needed: Transitioning NTH Load Balancing from RouterOS v6 to v7 with Stability Issues

$
0
0
Hello everyone,

I'm relatively new to MikroTik configurations but have a basic understanding of how things work. I'm reaching out for assistance with my MikroTik router, currently running on RouterOS v7. Previously, I had a setup with two ISPs on RouterOS v6 that worked well, utilizing NTH for load balancing. However, after upgrading to v7, my previous configuration no longer functions as expected.

Previous Configuration on RouterOS v6.49.3 (Model: 951Ui-2HnD):
Code:
# Basic setup for wireless, DHCP, and addresses/interface wirelessset [ find default-name=wlan1 ] ssid=MikroTik/interface wireless security-profilesset [ find default=yes ] supplicant-identity=MikroTik/ip pooladd name=dhcp_pool0 ranges=192.168.88.2-192.168.88.254/ip dhcp-serveradd address-pool=dhcp_pool0 disabled=no interface=ether3 name=dhcp1/ip addressadd address=192.168.88.1/24 interface=ether3 network=192.168.88.0add address=192.168.1.3/24 interface=ether1 network=192.168.1.0add address=192.168.8.3/24 interface=ether2 network=192.168.8.0# Setup for NTH load balancing with firewall mangle and NAT rules/ip firewall mangleadd action=mark-connection chain=prerouting connection-state=new in-interface=ether3 new-connection-mark=Con1 nth=2,1 passthrough=yesadd action=mark-connection chain=prerouting connection-state=new in-interface=ether3 new-connection-mark=Con2 nth=2,2 passthrough=yesadd action=mark-routing chain=prerouting connection-mark=Con1 in-interface=ether3 new-routing-mark=Routing1 passthrough=noadd action=mark-routing chain=prerouting connection-mark=Con2 in-interface=ether3 new-routing-mark=Routing2 passthrough=no/ip firewall natadd action=masquerade chain=srcnat connection-mark=Con1 out-interface=ether1add action=masquerade chain=srcnat connection-mark=Con2 out-interface=ether2/ip routeadd distance=1 gateway=192.168.1.1 routing-mark=Routing1add distance=1 gateway=192.168.8.1 routing-mark=Routing2
Updated Configuration for RouterOS v7.13.4 (Model: RB951Ui-2HnD):
Code:
# Adjusted configuration for RouterOS v7, including changes to routing table and other settings/interface lte apnset [ find default=yes ] ip-type=ipv4 use-network-apn=no/ip pooladd name=dhcp_pool0 ranges=192.168.88.2-192.168.88.254/ip dhcp-serveradd address-pool=dhcp_pool0 interface=ether3 lease-time=10m name=dhcp1/routing tableadd fib name=Routing1add fib name=Routing2...# Similar setup for firewall mangle, NAT rules, and routes, adapted for v7/ip firewall mangle.../ip routeadd disabled=no dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-table=Routing1add disabled=no dst-address=0.0.0.0/0 gateway=192.168.8.1 routing-table=Routing2...
Despite these adjustments, I'm facing issues with internet stability and connectivity, notably when connecting via WiFi, where it initially shows a limitation that eventually disappears. I've learned that RouterOS v7 replaces "routing mark" with "routing table", prompting me to edit my configuration, but the problem persists.

Questions:

1. Can anyone help me refine my configuration for better stability and performance on RouterOS v7?

2. Is there a more effective method than NTH for load balancing in v7, especially regarding connection or packet marking?

3.Any insights on why my internet connection shows limitations upon initial connection would be greatly appreciated.

Thank you in advance for your assistance and suggestions!

Statistics: Posted by memo009525 — Wed Feb 14, 2024 12:49 am



Viewing all articles
Browse latest Browse all 15394

Trending Articles