Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

Linux Commands / IT Support Guides

Check Linux route selection with ip route get

A VPN or secondary interface may change the route used to reach a service. Ask the kernel which path it would choose for a particular destination.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Try the diagnostic command

Use the stated shell and platform. Replace sample domains, addresses, services and paths with values from the system you are authorized to support.

ip route show
ip route get 192.0.2.10

How to read the result

The route table shows configured paths. route get reports the selected next hop, output interface and source address for the example destination without proving packets reach it.

What to do next

Replace the documentation address with the application address. Compare the selected path with the intended VPN or LAN and examine policy routing when the result is unexpected.

Before you make a change

Source-specific rules and separate network namespaces can alter application routing. Do not replace the default route without a tested recovery path.

Source & further reading

Linux manual — ip-route

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles