Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /ip route
- add check-gateway=ping comment=exit-1 distance=1 gateway=192.168.12.12 routing-mark=exit-1
- add check-gateway=ping comment=exit-2 distance=1 gateway=192.168.11.11 routing-mark=exit-2
- add check-gateway=ping comment=jalur1 distance=1 gateway=192.168.12.12 routing-mark=jalur1
- add check-gateway=ping comment=jalur1 distance=2 gateway=192.168.11.11 routing-mark=jalur1
- add check-gateway=ping comment=jalur2 distance=1 gateway=192.168.11.11 routing-mark=jalur2
- add check-gateway=ping comment=jalur2 distance=2 gateway=192.168.12.12 routing-mark=jalur2
- add check-gateway=ping comment=jalur1 distance=1 gateway=192.168.12.12
- add check-gateway=ping comment=jalur2 distance=2 gateway=192.168.11.11
- /system scheduler
- add interval=10s name=fail-over-ip-modem on-event="#jalur-1 cek\r\
- \n:if ([/ping address=208.67.222.222 interface=ether2 routing=exit-1 count=10] = 0) do={/ip route set [find comment=jalur1 gateway=192.168.12.12 distance=1] distance=3}\
- \_else={/ip route set [find comment=jalur1 gateway=192.168.12.12 distance=3] distance=1};\r\
- \n\r\
- \n#jalur-2 cek\r\
- \n:if ([/ping address=208.67.222.222 interface=ether1 routing=exit-2 count=10] = 0) do={/ip route set [find comment=jalur2 gateway=192.168.11.11 distance=1] distance=3}\
- \_else={/ip route set [find comment=jalur2 gateway=192.168.11.11 distance=3] distance=1};" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
- start-date=apr/05/2017 start-time=16:19:19
- *isinya system scheduler fail-over-ip-modem, seperti ini :
- #jalur-1 cek
- :if ([/ping address=208.67.222.222 interface=ether2 routing=exit-1 count=10] = 0) do={/ip route set [find comment=jalur1 gateway=192.168.12.12 distance=1] distance=3} else={/ip route set [find comment=jalur1 gateway=192.168.12.12 distance=3] distance=1};
- #jalur-2 cek
- :if ([/ping address=208.67.222.222 interface=ether1 routing=exit-2 count=10] = 0) do={/ip route set [find comment=jalur2 gateway=192.168.11.11 distance=1] distance=3} else={/ip route set [find comment=jalur2 gateway=192.168.11.11 distance=3] distance=1};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement