ip route get

Get a single route to a destination and print its contents exactly as the kernel sees it. More information: https://manned.org/ip-route.

ip route get {{1.1.1.1}}

ip route get {{destination}} from {{source}}

ip route get {{destination}} iif {{eth0}}

ip route get {{destination}} oif {{eth1}}

ip route get {{destination}} tos {{0x10}}

ip route get {{destination}} vrf {{myvrf}}