如何读取路由表?

Tan*_*Woo 1 linux routing ping

主机: win8 ip:192.168.1.102

虚拟机:gentoo ip:192.168.1.108

我输入命令route -n来查看路由表。

路由表是:

root@gentoo-jl ~ # route -n    
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.253   0.0.0.0         UG    1      0        0 eth0
127.0.0.0       127.0.0.1       255.0.0.0       UG    0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
Run Code Online (Sandbox Code Playgroud)

而且我不知道如何阅读路由表。

有人能告诉我怎么做吗read the table

当我在虚拟机(192.168.1.108)中 ping 主机(192.168.1.102)时,路径是什么from source to the destination

Lou*_*Xiu 5

man route并参阅 参考资料OUTPUT部分。

因为192.168.1.102192.168.1.108位于同一子网中。ping 数据包将直接前往 192.168.1.102。