Answer the question
In order to leave comments, you need to log in
How to change Mikrotik script?
good afternoon.
There are scripts on several Mikrotik routers. There was a need to change the IP address in the script.
How can this be done with a command in the terminal?
I'm not strong in scripts yet. I reviewed a bunch of examples, but did not find how to replace the desired value in the script.
Tell me, please.
Added.
in the body of the script, you need to change one value. the script itself is pretty simple. by netwatch changes ip address in pptp connection.
Answer the question
In order to leave comments, you need to log in
If the script is stored on Mikrotik, then there is no way to change only part of it. It must be read by an external system in its entirety, changed the desired part and uploaded back.
In your situation, you can specify a domain name, even a non-existent one, and add a static entry to the DNS with the desired ip. By changing the ip you will solve your problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question