What Command Checks the Routing Table in Linux?
Contents the Netstat Command Has Always Been a Widely Used Method of Printing Routing Table Information in Linux. How Do I Find the Routing Table in Linux? to...
Contents
The netstat command has always been a widely used method of printing routing table information in Linux.
How do I find the routing table in Linux?
To display the kernel routing table, you can use any of the following methods:
- route. $ sudo route -n. Kernel IP routing table. Destination Gateway Genmask Flags Metric Ref Use Iface. …
- netstat. $ netstat -rn. Kernel IP routing table. …
- ip. $ ip route list. 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.103.
Must Read
What is the command to display the routing table?
The -r option of netstat displays the IP routing table.