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):
# Basic setup for wireless, DHCP, and addresses
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.88.2-192.168.88.254
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface=ether3 name=dhcp1
/ip address
add address=192.168.88.1/24 interface=ether3 network=192.168.88.0
add address=192.168.1.3/24 interface=ether1 network=192.168.1.0
add 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 mangle
add action=mark-connection chain=prerouting connection-state=new in-interface=ether3 new-connection-mark=Con1 nth=2,1 passthrough=yes
add action=mark-connection chain=prerouting connection-state=new in-interface=ether3 new-connection-mark=Con2 nth=2,2 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=Con1 in-interface=ether3 new-routing-mark=Routing1 passthrough=no
add action=mark-routing chain=prerouting connection-mark=Con2 in-interface=ether3 new-routing-mark=Routing2 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat connection-mark=Con1 out-interface=ether1
add action=masquerade chain=srcnat connection-mark=Con2 out-interface=ether2
/ip route
add distance=1 gateway=192.168.1.1 routing-mark=Routing1
add distance=1 gateway=192.168.8.1 routing-mark=Routing2
Updated Configuration for RouterOS v7.13.4 (Model: RB951Ui-2HnD):
# Adjusted configuration for RouterOS v7, including changes to routing table and other settings
/interface lte apn
set [ find default=yes ] ip-type=ipv4 use-network-apn=no
/ip pool
add name=dhcp_pool0 ranges=192.168.88.2-192.168.88.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=ether3 lease-time=10m name=dhcp1
/routing table
add fib name=Routing1
add fib name=Routing2
...
# Similar setup for firewall mangle, NAT rules, and routes, adapted for v7
/ip firewall mangle
...
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-table=Routing1
add 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:
-
Can anyone help me refine my configuration for better stability and performance on RouterOS v7?
-
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!