Community discussions

MikroTik App
 
mip
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Fri Jun 04, 2004 8:19 pm
Location: Ráckeve
Contact:

route en/dis

Tue Nov 02, 2004 4:38 pm

I try to enable/disable route list item 0 from a script.
I wrote this:
/ip route pr
/ip route en 0

No effect

I wrote it into winbox's script editor, and tried { } version too. No effect. Whats wrong?
 
User avatar
[ASM]
Member Candidate
Member Candidate
Posts: 284
Joined: Sun Jun 06, 2004 12:59 am
Location: Sofia, Bulgaria
Contact:

Tue Nov 02, 2004 4:47 pm

try:
/ip route disable [/ip route find gateway=xxx.www.yyy.zzz]

or something like that
 
mip
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Fri Jun 04, 2004 8:19 pm
Location: Ráckeve
Contact:

Tue Nov 02, 2004 4:49 pm

the task is that if an ospf distributed def gw is unreacable, a static def route should be enabled. So in normal I have a route for 0.0.0.0 from ospf, and a disable static. If a spec ip has no answer from netwach, the static route should be enebled, if has answer, disabled.

Who is online

Users browsing this forum: No registered users and 12 guests