Mikrotik | Forum Mikrotik Indonesia   Mikrotik Manual Mikrotik iSPY Mikrotik RSS Feed
This Logo is a Courtesy from RumahDowty

Go Back   Mikrotik | Forum Mikrotik Indonesia > Diskusi Mikrotik RouterOS > Scripting @ Mikrotik
iSpy My iTrade Register FAQ Members List Calendar Mark Forums Read

Diskusi [ask]Auto switch gateway 2 isp pada Scripting @ Mikrotik | Mikrotik | Forum Mikrotik Indonesia : berarti harus di netwatch ya.... thanks pencerahannya bro.......


Official Board Announcements
NEW
Kunjungi Forum Diskusi PROXY Linux di FMI
donasi



 
Reply
 
LinkBack Thread Tools
  #16 (permalink)  
Old 02-08-2008, 17:51
lonthong2002's Avatar
lonthong2002 lonthong2002 is offline
Member Senior
 
Join Date: Jul 2007
Posts: 362
iTrader: (1)
Thanks: 19
Thanked 44 Times in 33 Posts
lonthong2002 will become famous soon enoughlonthong2002 will become famous soon enoughlonthong2002 will become famous soon enough
Send a message via MSN to lonthong2002 Send a message via Yahoo to lonthong2002



berarti harus di netwatch ya....


thanks pencerahannya bro....


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 18-08-2008, 02:27
ashriel's Avatar
ashriel ashriel is offline
Member
 
Join Date: Dec 2007
Posts: 185
iTrader: (1)
Thanks: 32
Thanked 19 Times in 16 Posts
ashriel is on a distinguished roadashriel is on a distinguished road
Quote:
Originally Posted by yosanpro View Post
Oh... yang dimaksud gitu yah... Aku pikir pikirin lagi deh...

Kalau itu kembalinya ke gw utama cuman kalo ip internasional cadangan putus, jadi nggak mengecheck gw utama. Kalau pengin kembalinya pas gw utama normal lagi tunggu sebentar ya bro, baru menata otak buat mikirinnya nih...
bro yosanpro, ini aku coba modifikasi dikit dari script yang tempo hari..
jadi ketika koneksi internasional gw utama pulih, traffic akan kembali ke gw utama..

aku cuman nambahin default gw menuju ip internasional yang dicek.., kemudian pake netwatch up-script..

/ip route add gateway=10.0.0.1 distance=1 comment="utama"
/ip route add gateway=17.0.0.1 distance=2 comment="cadangan"
/ip route add destination=203.208.151.185 gateway=10.0.0.1

/system script add name="autogw" source={
:if ([/ip route get [/ip route find comment="utama"] disabled]="yes") do={/ip route enable [/ip route find comment="utama"]} else={/ip route disable [/ip route find comment="utama"]}
}

/system script add name="utama-return" source={
:if ([/ip route get [/ip route find comment="utama"] disabled]="yes") do={/ip route enable [/ip route find comment="utama"]}
}

/tool netwatch add host=203.208.151.185 interval=15s timeout=2s down-script="autogw"

/tool netwatch add host=203.208.151.185 interval=15s timeout=2s up-script="utama-return"



semoga bermanfaat, mohon maaf kalo ada kesalahan.. settingan ini sdh aku terapkan dan alhamdulillah berjalan baik..


Last edited by ashriel : 18-08-2008 at 06:37.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 3 Users Say Thank You to ashriel For This Useful Post:
  #18 (permalink)  
Old 19-08-2008, 20:31
yosanpro's Avatar
yosanpro yosanpro is offline
Moderator
 
Join Date: Nov 2007
Location: Bantul, Bantul, Yogyakarta
Posts: 1,838
iTrader: (1)
Thanks: 100
Thanked 501 Times in 301 Posts
yosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond reputeyosanpro has a reputation beyond repute
Send a message via Yahoo to yosanpro
Nice Idea... betul juga, kasih routing ke IP tertentu...

OK, Case closed...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 29-08-2008, 21:49
imat imat is offline
Baru Gabung
 
Join Date: Aug 2008
Posts: 1
iTrader: (0)
Thanks: 1
Thanked 0 Times in 0 Posts
imat is on a distinguished road
salam kenalll semuaaaaa


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto generate dari pos kasir tubagus Beginner Basics 5 28-06-2008 00:18
[Info] Script buat auto delete nice di address list dan auto import nice.rsc file okto_2005 Scripting @ Mikrotik 12 11-04-2008 08:28
tanya switch...??? irfan General Networking 2 28-03-2008 09:39
switch tidak bisa shaing mrgubrak General Networking 3 05-02-2008 14:17
(ASK) Menempatkan Mikrotik setelah switch bayong General Networking 3 17-01-2008 10:17


This Forum is Powered by Orion Net.

All times are GMT +8. The time now is 05:55.