Code: Select all
:if ($bound=1) do={
/ip route set [find where comment="dhcp2"] gateway=$"gateway-address" disabled=no
/ip route set [find where comment="LM1200"] gateway=$"gateway-address" disabled=no
} else={
/ip route set [find where comment="dhcp2"] disabled=yes
/ip route set [find where comment="LM1200"] disabled=yes
}
Code: Select all
# DST-ADDRESS GATEWAY DISTANCE
;;; LM1200
4 As 10.1.10.106/32 x.y.z.1 1
Code: Select all
# ADDRESS MAC-ADDRESS INTERFACE
23 C 10.1.10.106 6E:CD:D6:53:30:8E ether2
isn't working. What am I missing?