Do you want to sleep with calm? yeehaaa, berawal dr kalau mati gateway A harus ganti manual dengan Gateway B...
sekarang saya akan posting gimana c caranya supaya bisa otomatis?
script yang ada di sini SALAH :)
right script :
:local i 0;
:while(($i < 5) && ([/ping 192.168.0.1 interval=2 count=1]=0)) do={:set i ($i + 1)};
:if(($i=5) && [/ip route get [find comment="gatewayA_up"] disabled]=false) do={/ip route set [find comment="gatewayA_down"] disabled=no;
/ip route set [find comment="gatewayA_up"] disabled=yes}
[admin@MikroTik] ip route> print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 ADC 192.168.0.0/24 192.168.0.42 Angkasa
1 ADC 192.168.2.0/24 192.168.2.2 Telkom
2 ADC 192.168.3.0/24 192.168.3.254 Local
3 ADC 192.168.4.0/24 192.168.4.1 Local_Home
4 A S ;;; warnet_up
0.0.0.0/0 r 192.168.2.1 Telkom
5 A S ;;; gatewayA_up
0.0.0.0/0 r 192.168.0.1 Angkasa
6 X S ;;; gatewayA_down
0.0.0.0/0 r 192.168.2.1 Telkom
7 X S ;;; warnet_down
0.0.0.0/0 r 192.168.0.1 Angkasa
good night and nice dreamm
-uculan-
Saturday, May 31, 2008
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment