Setting 2 Isp

download Setting 2 Isp

of 2

Transcript of Setting 2 Isp

  • 7/26/2019 Setting 2 Isp

    1/2

    ether1 (ISP1) : 111.111.111.111ehter2 (ISP2) : 222.222.222.222ehter3 (LAN) : 192.168.254.1

    Tambahkan IP Address pada mikrotik box untuk keperluan diatas:/ip addressadd address=111.111.111.111/24 network=111.111.111.0 broadcast=111.111.111.255 interface=ether1add address=222.222.222.222/24 network=222.222.222.0 broadcast=222.222.222.255 interface=ether2add address=192.168.254.1/24 network=192.168.254.0 broadcast=192.168.254.255 interface=ether3

    4 buah workstation dengan ip : 192.168.254.2 (WORKST-1),192.168.254.3(WORKST-2), 192.168.254.4(WORKST-3) dan 192.168.254.5(WORKST-3)

    /ip firewall address-listadd list=jalur1 address="192.168.254.2"add list=jalur1 address="192.168.254.3"add list=jalur2 address="192.168.254.4"add list=jalur2 address="192.168.254.5"

    /ip firewall natadd chain=srcnat action=masquerade to-addresses=111.111.111.111 src-address-list

    =jalur1 comment="via ISP1"add chain=srcnat action=masquerade to-addresses=222.222.222.222 src-address-list=jalur2 comment="via ISP2"

    /ip firewall mangleadd chain=prerouting action=mark-routing new-routing-mark=jalur1-route passthrough=no\src-address-list=jalur1 in-interface=ether3 comment"Mark Routing Jalur1"add chain=prerouting action=mark-routing new-routing-mark=jalur2-route passthrough=no\src-address-list=jalur2 in-interface=ether3 comment"Mark Routing Jalur2"

    /ip route

    add dst-address=0.0.0.0/0 gateway=111.111.111.1 check-gateway=ping distance=1 scope=30\target-scope=10 routing-mark=jalur1-routeadd dst-address=0.0.0.0/0 gateway=222.222.222.1 check-gateway=ping distance=1 scope=30\target-scope=10 routing-mark=jalur1-routeadd dst-address=0.0.0.0/0 gateway=111.111.111.1 check-gateway=ping distance=1 scope=30\target-scope=10 routing-mark=jalur2-routeadd dst-address=0.0.0.0/0 gateway=222.222.222.1 check-gateway=ping distance=1 scope=30\target-scope=10 routing-mark=jalur2-routeadd dst-address=0.0.0.0/0 gateway=111.111.111.1 check-gateway=ping distance=1 sc

    ope=30\target-scope=10add dst-address=0.0.0.0/0 gateway=222.222.222.1 check-gateway=ping distance=1 scope=30\target-scope=10

    /ip route ruleadd dst-address=111.111.111.0/24 action=lookup table=mainadd dst-address=222.222.222.0/24 action=lookup table=mainadd dst-address=192.168.254.0/24 action=lookup table=main

  • 7/26/2019 Setting 2 Isp

    2/2

    add src-address=111.111.111.0/24 action=lookup table=jalur1-routeadd src-address=222.222.222.0/24 action=lookup table=jalur2-routeadd routing-mark=jalur1-route action=lookup table=jalur1-routeadd routing-mark=jalur2-route action=lookup table=jalur2-route