Load Balance 2 ISP Mikrotik

Dari Catatan Pak Samsul
Revisi sejak 31 Januari 2023 07.38 oleh Samsul (bicara | kontrib)
(beda) ← Revisi sebelumnya | Revisi terkini (beda) | Revisi selanjutnya → (beda)
Loncat ke navigasi Loncat ke pencarian
/ip firewall nat add action=masquerade chain=srcnat out-interface=------------
/ip firewall nat add action=masquerade chain=srcnat out-interface=------------


/ip firewall mangle add action=mark-connection chain=prerouting dst-address-type=!local \
   in-interface=----- new-connection-mark=ISP1 passthrough=yes \
   per-connection-classifier=src-address-and-port:2/0
/ip firewall mangle add action=mark-connection chain=prerouting dst-address-type=!local \
   in-interface=----- new-connection-mark=ISP2 passthrough=yes \
   per-connection-classifier=src-address-and-port:2/1
/ip firewall mangle  add action=mark-routing chain=prerouting connection-mark=ISP1 in-interface=\
   ----- new-routing-mark="Ke ISP1" passthrough=yes
/ip firewall mangle  add action=mark-routing chain=prerouting connection-mark=ISP2 in-interface=\
   ----- new-routing-mark="Ke ISP2" passthrough=yes


/ip route add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP1"
/ip route add check-gateway=ping distance=1 gateway=------------ routing-mark="Ke ISP2"
/ip route add distance=1 gateway=----------,-----------