para master mikrotik...saya newbie mao minta tolong di periksa ya scriptnya....
Code:
/ip route add gateway=202.1xx.xxx.xx distance=1 comment=”ISP1”
/ip route add gateway=202.1xx.xxx.xx distance=1 comment=”ISP2”
/ip route add gateway=202.1xx.xxx.xx distance=1 comment=”ISP3”
Code:
/system script add name=”autogateway” source={
:if ([/ip route get [/ip route find comment="ISP2"] disabled]=yes) do={/ip route enable [/ip route find comment=" ISP2"] /ip route disable [/ip route find comment=" ISP1"]} else={/ip route disable [/ip route find comment=" ISP2"] /ip route enable [/ip route find comment=" ISP1"]}
:if ([/ip route get [/ip route find comment="ISP3"] disabled]=yes) do={/ip route enable [/ip route find comment=" ISP3"] /ip route disable [/ip route find comment=" ISP2"]} else={/ip route disable [/ip route find comment=" ISP3"] /ip route enable [/ip route find comment=" ISP2"]}
:if ([/ip route get [/ip route find comment="ISP1"] disabled]=yes) do={/ip route enable [/ip route find comment=" ISP1"] /ip route disable [/ip route find comment=" ISP3"]} else={/ip route disable [/ip route find comment=" ISP1"] /ip route enable [/ip route find comment=" ISP3"]}
} Code:
/tool netwatch add host=202.1xx.xxx.xx interval=15s timeout=2s up-script=”/ip route enable [find comment=”ISP1”]”
/tool netwatch add host=202.1xx.xxx.xx interval=15s timeout=2s up-script=”/ip route enable [find comment=”ISP2”]”
/tool netwatch add host=202.1xx.xxx.xx interval=15s timeout=2s up-script=”/ip route enable [find comment=”ISP3”]”
yang saya ingin failover begini...jika ada 3isp trus isp1 down maka ke isp2 kalau isp1 udah bener akan balik lagi...sedangkan isp2 down maka ke isp3 kalau isp2 udah bener akan balik lagi..sedangkan isp3 down maka ke isp1 kalau isp3 udah bener akan balik lagi....na kira2 scriptnya bener gak???
saya blom tes soalnya kurang lan cardnya....
jadi urutannya isp1 down ke isp2..isp2 down ke isp3...isp3 down ke isp1..gitu loh...
saya udah baca2 tutor dari forum ini dan mencari2 di google...tapi jarang ada yang 3isp...rata2 2isp....

thread punya kk yosan saya kurang ngerti....

mohon koreksinya.....

terima kasih...