运行route-n命令,可以输出路由选择表如下。 Kernel IP routing table Dest ination Gateway Genmask Flags Metric Ref Use Iface 192.168.0.0 0.0.0.0 255.2 55.2 55.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 10 0.0.0.0192.168.0.1 0.0.0.0 UG 0 0 0 eth0 则该网络的默认网关地址是______。
参考答案:192.168.0.1
解析: 运行route-n命令,可以输出路由选择表如下。 Kernel IP routing table Destination Gateway Genmask Flags MetriC Ref Use Iface 192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 10 0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0 其中第一项是指通过eth0到网络192.168.0.0的路由,第二项是指通过eth0到网络169.254.0.0的路由。第三项是指到localhost的回送路由,第四项是指通过eth0到本地网络的路由。这四项路由信息都设置了标志(Flags)U(UP,启动的意思),但只有第四项还设置了标志G(gateway),即网关标志,则该网络的默认网关地址是192.168.0.1。