Config Pisah Trafik Multi ISP ke multi lan Mikrotik

double klik untuk salin
/interface ethernet set [ find default-name=ether1 ] comment=WAN1 name=ether1-WAN1 set [ find default-name=ether2 ] comment=WAN2 name=ether2-WAN2 set [ find default-name=ether3 ] comment=LAN1 name=ether3-LAN1 set [ find default-name=ether4 ] comment=LAN2 name=ether4-LAN2 /ip address add address=10.0.2.22 interface=ether1-WAN1 add address=172.0.2.22 interface=ether2-WAN2 add address=192.168.1.1 interface=ether3-LAN1 add address=192.168.2.1 interface=ether4-LAN2 /ip route add gateway=10.0.2.1 add gateway=172.0.2.1 /ip firewall mangle add action=mark-routing chain=prerouting comments="LAN1 ke WAN1" new-routing-mark=LAN1_ke_WAN1 passtrough=yes src-address=192.168.1.0/24 add action=mark-routing chain=prerouting comments="LAN2 ke WAN2" new-routing-mark=LAN2_ke_WAN2 passtrough=yes src-address=192.168.2.0/24 /ip route add distance=1 gateway=10.0.2.1 routing-mark=LAN1_ke_WAN1 add distance=1 gateway=172.0.2.1 routing-mark=LAN2_ke_WAN2 #mengizinkan ping ke gateway /ip firewall mangle add action=accept chain=prerouting comments="Izin ping gateway LAN1" dst-address=192.168.1.1 src-address=192.168.1.0/24 add action=accept chain=prerouting comments="Izin ping gateway LAN1" dst-address=192.168.2.1 src-address=192.168.2.0/24



Type above and press Enter to search.

Code Copied!