Community discussions

MikroTik App
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

How do I disable a rule in IP ROUTE?

Sat Dec 19, 2020 3:20 pm

Hello, how do I disable a rule in IP ROUTE with a script?


Tank you.



ELDONCITO.
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I disable a rule in IP ROUTE?

Sun Dec 20, 2020 11:44 am

Can someone give me a hand?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: How do I disable a rule in IP ROUTE?  [SOLVED]

Mon Dec 21, 2020 1:16 am

Examples:
/ip route disable [find comment="test"]
/ip route disable [find dst-address=10.0.0.0/8]
/ip route disable [find dst-address=0.0.0.0/0 gateway=10.1.1.1]
 
eldoncito2019
Member
Member
Topic Author
Posts: 333
Joined: Fri Jun 14, 2019 1:07 pm

Re: How do I disable a rule in IP ROUTE?

Mon Dec 21, 2020 5:11 am

Examples:
/ip route disable [find comment="test"]
/ip route disable [find dst-address=10.0.0.0/8]
/ip route disable [find dst-address=0.0.0.0/0 gateway=10.1.1.1]
Thanks friend SOB then I have the following script: if ([/ ping 8.8.8.8 interface = "ETHERT 2" count = 6] = 0) do = {/ ip route disable [find comment = "test"]
How would I enable the rule in IP Route, when the ping to DNS 8.8.8.8 responds?

Tank you
 
msatter
Forum Guru
Forum Guru
Posts: 2897
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: How do I disable a rule in IP ROUTE?

Mon Dec 21, 2020 12:00 pm

You can't. If you don't have an active connection to the internet you can't ping anything on the internet.

Please stop with creating postings about this and have a read of what others suggested in answer to your many postings on this.

Who is online

Users browsing this forum: Bing [Bot] and 15 guests