问答题
【问题5】
运行route-n命令,可以输出路由选择表如下:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use lface
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 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
则该网络的默认网关地址是{{U}} (11) {{/U}}。
【正确答案】
【答案解析】【问题5】
(11)192.168.0.1
[分析]
【问题5】
运行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 lo
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。