运行route-n命令,可以输出路由选择表如下。 Kernel IP routing table Dest ination Gateway Genmask Flags Metric Ref Us

admin2013-01-05  26

问题 运行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.0        192.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。
转载请注明原文地址:https://kaotiyun.com/show/pJkZ777K
0

相关试题推荐
最新回复(0)