ip route get 8.8.8.8

Category: Networking

ip route get 8.8.8.8

Show which route and interface will be used to reach an IP

Performs a route lookup for a specific destination and shows exactly which interface and gateway the kernel would use. Answers 'how will this packet leave my machine?' — useful for debugging asymmetric routing.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.