ip-route-get
Get a single route to a destination and print its contents exactly as the kernel sees it. tldr-pages
On Linux
Linux
Print route to a destination
ip [r [g 1.1.1.1IdentifyTrips 1 Sigma rule: informationalSystem Network Discovery - Linux by Ömer Günal and remotephone, oscd.community
Print route to a destination from a specific source address
ip [r [g destination from sourceIdentifyTrips 1 Sigma rule: informationalSystem Network Discovery - Linux by Ömer Günal and remotephone, oscd.community
Print route to a destination for packets arriving on a specific interface
ip [r [g destination iif ethXIdentifyTrips 1 Sigma rule: informationalSystem Network Discovery - Linux by Ömer Günal and remotephone, oscd.community
Print route to a destination, forcing output through a specific interface
ip [r [g destination oif ethXIdentifyTrips 1 Sigma rule: informationalSystem Network Discovery - Linux by Ömer Günal and remotephone, oscd.community
Print route to a destination with a specified Type of Service (ToS)
ip [r [g destination tos 0x10IdentifyTrips 1 Sigma rule: informationalSystem Network Discovery - Linux by Ömer Günal and remotephone, oscd.community
Print route to a destination using a specific VRF (Virtual Routing and Forwarding) instance
ip [r [g destination vrf myvrfIdentifyTrips 1 Sigma rule: informationalSystem Network Discovery - Linux by Ömer Günal and remotephone, oscd.community