HOME
Router
OS Tools
MIKROTIK
LOCAL CLIENT IP STATIC ROUTING
(POLICY BASED ROUTING)
Routing Options
Route Mangle
Route Routes
Route Rules
IP Options
Global IP
Range IP
ROS Version
RouterOS v6.xx
RouterOS v7.xx
ISP Gateway
Target Client IP
Routing Mark
Generate
Copy Script
###############################################
# MikroTik Local Client IP Static Routing (Policy Based Routing)
# Date/Time:
# Created By: BuanaNETPBun.Github.io - fb.me/buananet.pbun
###############################################
/routing table add name="
to-ISP-1
" fib comment="Generator by RouterOS Tools"
/ip route add check-gateway=ping distance=10 gateway="
192.168.2.1
"
routing-mark="to-ISP-1"
comment="Generator by RouterOS Tools"
/ip firewall mangle add action=mark-routing chain=prerouting src-address-list="
10.5.50.0/24
" new-routing-mark="
to-ISP-1
" passthrough=no comment="Generator by RouterOS Tools"
/ip firewall address-list add address="
10.5.50.0/24
" list="
to-ISP-1
" comment="Generator by RouterOS Tools"
/ip route add check-gateway=ping distance=10 dst-address="
10.5.50.0/24
" gateway="
192.168.2.1
" comment="Generator by RouterOS Tools"
/ip route add check-gateway=ping distance=10 gateway="
192.168.2.1
"
routing-mark="to-ISP-1"
comment="Generator by RouterOS Tools"
/ip route rule add src-address="
10.5.50.0/24
" table="
to-ISP-1
" comment="Generator by RouterOS Tools"
/routing rule add src-address="
10.5.50.0/24
" table="
to-ISP-1
" comment="Generator by RouterOS Tools"