I am struggling with RouterOS command line.
I do need to get the interface name of the Wan if.
This commands shows it: ether1-Wan
This do show all info:
:put [/ip route check 220.127.116.11] status: ok interface: ether1-Wan nexthop: 92.xxx.xxx.1
I am thinking of getting the line like this:
/ip route print
and then find the if by using the IP for 0.0.0.0
:put [ /ip route get [ /ip route find where dst-address=0.0.0.0/0 ]]