How do I disable a rule in IP ROUTE?

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


Tank you.



ELDONCITO.

Can someone give me a hand?

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

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.