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
?
man route
并参阅 参考资料OUTPUT
部分。
因为192.168.1.102
和192.168.1.108
位于同一子网中。ping 数据包将直接前往 192.168.1.102。