Community discussions

MikroTik App

Search found 2 matches

by severinoeuclides
Sat Jun 09, 2018 7:15 am
Forum: Scripting
Topic: Script to exchange dynamic ip gateway in IP / Routes
Replies: 2
Views: 2361

Re: Script to exchange dynamic ip gateway in IP / Routes

I've tried with this script but it does not run at all, can someone help me in this matter !! :global newgw [/ip dhcp-client get [find interface="ether4" ] gateway ] :global activegw [/ip routes get [/ip routes find comment="ether4"] gateway ] :if ($newgw != $activegw) do={ /ip r...
by severinoeuclides
Sun May 27, 2018 6:36 am
Forum: Scripting
Topic: Script to exchange dynamic ip gateway in IP / Routes
Replies: 2
Views: 2361

Script to exchange dynamic ip gateway in IP / Routes

Hello there everyone of the forum, I am new and would like a help on a Script I'm trying to find a script to automatically change the dynamic ip of my carrier, where I want to capture the gateway of a rule in IP / DHCP Client and update the route gateway automatically !! I could leave it there norma...