Advertisement
smithy1208

Untitled

Jul 24th, 2021
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # isp1
  2. :local wan1 [/interface get [find comment=ISP1] name];
  3. :local NewGW [/ip address get [find interface=$wan1] network];
  4. /ip route set [find comment="recursive gateway for PRIMARY ISP (Gateaway IP to be adjusted when ISP changes it)"] gateway=$NewGW;
  5. :log warning ("New ISP1 gateway: ".($NewGW))}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement