question about command line

Hi

I was trying to find a route in my route table (15K) and found this and was puzzled by it

doing this
/ip route print detail where 203.82.140.125 in dst-address

found me this
49 ADb dst-address=203.82.128.0/19 gateway=175.45.107.73 gateway-status=175.45.107.73 reachable via YBPublicVocus distance=20 scope=40 target-scope=10
bgp-as-path=“4826,2497,7991,3561” bgp-origin=igp bgp-communities=4826:5902,4826:6560 received-from=alcvocus


which is what I wanted

I am wondering why when I do this

/ip route print detail where dst-address=203.82.140.125

can I presume the first one is using network logic to say what route matches and the second one is doing some sort of string search.

so why doesn’t this work
/ip route print detail where dst-address=203.82
or
/ip route print detail where dst-address~203.82

and where do I find more info on the “in” command used on the first example !!!


one last bit to is how do i simulate a ip route get ? from linux ask the routing table how it would route !

It appears that is correct. I did not know the first option existed, and I can’t seem to dig up if it is explained somewhere on the wiki.

You almost had it with the last command. Using regex, make sure to quote the string:
/ip route print detail where dst-address~"203.82"I don’t know about the last question.