How Do I Show a Route Table in Linux?

How Do I Show a Route Table in Linux?
Contents

How do I display a route table 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.

What is the command to display the routing table?

The -r option of netstat displays the IP routing table.

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.