Community discussions

MikroTik App
 
eldoncito2019
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
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
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
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: 6474
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]
Excessive quoting is useless and annoying. If you use it, please consider if you could do without it.
 
eldoncito2019
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 56
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: 2012
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.
Loving my freedom and so, no Twitter, no Facebook/Instagram/WhatsApp, no Apple and no Google/Alphabet.

Running:
RouterOS 6.48 / Winbox 3.27 64bits

Who is online

Users browsing this forum: No registered users and 27 guests