Example:
Code: Select all
ip route print where dst-address =192.168.153.2/32
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
1 S 192.168.153.2/32 wlan2 1
Code: Select all
/ip/route/print
?dst-address=192.168.153.2/32
stReturnSentence.szSentence[0] = !re
stReturnSentence.szSentence[1] = =dst-address=192.168.153.2/32
stReturnSentence.szSentence[2] = =gateway=wlan2
stReturnSentence.szSentence[3] = =gateway-status=wlan2 unreachable
stReturnSentence.szSentence[4] = =distance=1
stReturnSentence.szSentence[5] = =active=false
stReturnSentence.szSentence[6] = =static=true
stReturnSentence.szSentence[0] = !done
Sentence iLength = 7
Sentence iReturnValue = 0