有人可以解释我的输出是route -n什么吗?
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
Run Code Online (Sandbox Code Playgroud)
mic*_*has 11
你的表基本上是说:
如果您想使用 IP 地址访问另一台主机
eth1eth1lo该route命令是旧命令,您应该改用iproute 工具。
有关更基本的介绍,您可以从维基百科关于路由表的文章开始。