Hello,
I’m interested if there is a possiblity to set “check-gateway” feature on default gateway pushed by DHCP or PPPoE server?
Is there a hidden trick, script or something to make this possible?
Both DHCP and PPPoE has the possiblity for a dynamic IP customer endpoint, that provider gives different Gateway,
so if i manually add what i know - and disable “add default route” - may hurt (unless i know all the possiblities they can push, and
manually add all of them)
Thank you mate! That’s quite brilliant sollution. I’ve even added to ignore gateway given by broadband modem while in syncing mode (It is assigning address from 192.168.100.0/24 before it sync with docsis network):
:if ($bound=1 and $"gateway-address" != "192.168.100.254") do={
/ip route set [ find where dst-address="0.0.0.0/0" and distance=1 ] disabled=no gateway=$"gateway-address"
} else={
/ip route set [ find where dst-address="0.0.0.0/0" and distance=1 ] disabled=yes
}