• Newsticker

    Sabtu, 09 Mei 2020

    Konfigurasi Fail Over 3 WAN

    # ip modem1 = 172.16.1.1 ---> ether1
    # ip modem2 = 172.16.2.1 ---> ether2
    # ip modem3 = 172.16.3.1 ---> ether3
     
    /ip route
    add check-gateway=ping comment=exit-1 distance=1 gateway=172.16.1.1 routing-mark=exit-1
    add check-gateway=ping comment=exit-2 distance=1 gateway=172.16.2.1 routing-mark=exit-2
    add check-gateway=ping comment=exit-3 distance=1 gateway=172.16.3.1 routing-mark=exit-3
     
    add check-gateway=ping comment=jalur-1 distance=1 gateway=172.16.1.1 routing-mark=jalur-1
    add check-gateway=ping comment=jalur-1 distance=2 gateway=172.16.2.1 routing-mark=jalur-1
    add check-gateway=ping comment=jalur-1 distance=3 gateway=172.16.3.1 routing-mark=jalur-1
     
    add check-gateway=ping comment=jalur-2 distance=1 gateway=172.16.2.1 routing-mark=jalur-2
    add check-gateway=ping comment=jalur-2 distance=2 gateway=172.16.3.1 routing-mark=jalur-2
    add check-gateway=ping comment=jalur-2 distance=3 gateway=172.16.1.1 routing-mark=jalur-2
     
    add check-gateway=ping comment=jalur-3 distance=1 gateway=172.16.3.1 routing-mark=jalur-3
    add check-gateway=ping comment=jalur-3 distance=2 gateway=172.16.2.1 routing-mark=jalur-3
    add check-gateway=ping comment=jalur-3 distance=3 gateway=172.16.1.1 routing-mark=jalur-3
     
    add check-gateway=ping comment=jalur-1 distance=1 gateway=172.16.1.1
    add check-gateway=ping comment=jalur-2 distance=2 gateway=172.16.2.1
    add check-gateway=ping comment=jalur-3 distance=3 gateway=172.16.3.1
    
    Buat system schedule dengan nama “fail-over” interval=00:00:10 dan tambahkan pada on event script dibawah ini :
    #jalur-1 cek
    :if ([/ping address=8.8.8.8 interface=ether1 routing=exit-1 count=5] = 0) do={/ip route set [find comment=jalur-1 gateway=172.16.1.1 distance=1] distance=4} else={/ip route set [find comment=jalur-1 gateway=172.16.1.1 distance=4] distance=1};
     
    #jalur-2 cek
    :if ([/ping address=8.8.8.8 interface=ether2 routing=exit-2 count=5] = 0) do={/ip route set [find comment=jalur-2 gateway=172.16.2.1 distance=1] distance=4} else={/ip route set [find comment=jalur-2 gateway=172.16.2.1 distance=4] distance=1};
     
    #jalur-3 cek
    :if ([/ping address=8.8.8.8 interface=ether3 routing=exit-3 count=5] = 0) do={/ip route set [find comment=jalur-3 gateway=172.16.3.1 distance=1] distance=4} else={/ip route set [find comment=jalur-3 gateway=172.16.3.1 distance=4] distance=1};

    SUmber: https://labkom.co.id/mikrotik/konfigurasi-fail-over-3-wan

    Tidak ada komentar:

    Posting Komentar

    Agama

    Jaringan

    Android

    Linux

    Catatan

    Mikrotik