How Do I Find Routes in Linux?
Contents

How do I see routes in Linux?

To display the kernel routing table, you can use any of the following methods:

  1. route. $ sudo route -n. Kernel IP routing table. Destination Gateway Genmask Flags Metric Ref Use Iface. …
  2. netstat. $ netstat -rn. Kernel IP routing table. …
  3. ip. $ ip route list. 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.103.

How do I find a route?

Use the netstat command to display the local routing tables:

  1. Become superuser.
  2. Type: # netstat -r.
Robert Thorne

Robert Thorne

Automotive & Future Transportation Editor

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.

Share this article
Twitter Facebook Pinterest