CCNA考点精析---IP路由表分析.docx

上传人:m**** 文档编号:564385981 上传时间:2022-09-24 格式:DOCX 页数:9 大小:14.60KB
返回 下载 相关 举报
CCNA考点精析---IP路由表分析.docx_第1页
第1页 / 共9页
CCNA考点精析---IP路由表分析.docx_第2页
第2页 / 共9页
CCNA考点精析---IP路由表分析.docx_第3页
第3页 / 共9页
CCNA考点精析---IP路由表分析.docx_第4页
第4页 / 共9页
CCNA考点精析---IP路由表分析.docx_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《CCNA考点精析---IP路由表分析.docx》由会员分享,可在线阅读,更多相关《CCNA考点精析---IP路由表分析.docx(9页珍藏版)》请在金锄头文库上搜索。

1、 CCNA考点精析-IP路由表分析Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, su - IS-IS

2、summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not setC 192.168.123.0/24 is directly connected, FastEthernet0/0 1.0.0.0/24 is subnetted, 3 subnets C 1.1.1.

3、0 is directly connected, Loopback0C 1.1.2.0 is directly connected, Loopback1C 1.1.3.0 is directly connected, Loopback2C 192.168.14.0/24 is directly connected, Serial1/2 假如你只想检查静态的路由条目,则可以在show ip route命令后加上static参数,依此类推Configuration static routes 配置静态路由的步骤 1、 首先确定好每条链路的地址 2、 为每台路由器找出非直连的链路 3、 为每台路由器

4、的非直连链路写出静态条目(直连没有必要写) 注:把未知交给已知 R1(config)#ip route 2.2.1.2 255.255.255.0 192.168.12.2 R1(config)#ip route 2.2.2.2 255.255.255.0 192.168.12.2R1(config)#ip route 2.2.3.2 255.255.255.0 192.168.12.2 谁是自己的未知?全部非直连的链路 谁是自己的已知?直连链路 在直连链路上有两种选择:下一跳(next-hop)和出接口(interface) 分别看一下两者的区分 下一跳是和自己直连路由器的接口地址,而出接口

5、则是自己本身的接口名称 就好象一条隧道的入口和出口:出口就是下一跳,入口是出接口 R1和R2通过FA0/0FA0/0,S1/1S1/0 FA0/0口的IP分别为192.168.123.1/192.168.123.2 S1/1的IP为:192.168.12.1 S1/0的IP为:192.168.12.2 它们各自有三条直连网段: 1.1.1.1 1.1.2.11.1.3.1和2.2.1.22.2.2.22.2.3.2 分析: 对于R1来说,它的已知是: 192.168.123.0/24 192.168.12.0/241.1.1.0/241.1.2.0/241.1.3.0/24 对于R2来说,它的

6、已知是: 192.168.123.0/24 192.168.12.0/242.2.1.0/242.2.2.0/24除已知条目外,其余全是它们各自的未知,此时我们可以用两种方法来配置静态路由 一、使用下一跳next-hop: R2(config)#ip route 1.1.1.0 255.255.255.0 192.168.123.1 R2(config)#ip route 1.1.2.0 255.255.255.0 192.168.123.1R2(config)#ip route 1.1.3.0 255.255.255.0 192.168.123.1 红字标识的即为next-hop 看一下路由

7、表: R2#sh ip route static 1.0.0.0/24 is subnetted, 3 subnetsS 1.1.1.0 1/0 via 192.168.123.1S 1.1.2.0 1/0 via 192.168.123.1S 1.1.3.0 1/0 via 192.168.123.1 到达三个未知的地方全部都交给了 via 192.168.123.1 ,留意里的数字1/0 二、使用出接口interface: R1(config)#ip route 2.2.1.0 255.255.255.0 serial 1/1 R1(config)#ip route 2.2.2.0 255

8、.255.255.0 serial 1/1R1(config)#ip route 2.2.3.0 255.255.255.0 serial 1/1 红字标识的地方即为出接口 看一下路由表: R1#sh ip route static 2.0.0.0/24 is subnetted, 3 subnetsS 2.2.1.0 is directly connected, Serial1/1S 2.2.2.0 is directly connected, Serial1/1S 2.2.3.0 is directly connected, Serial1/1 这里已经没有了。取而代之的是directly

9、 connected,说明路由器R1认为这些条目都是自己直连的条目。 路由器在路由选择的过程中会比拟哪条路是更好的路 这时候假如用第一种方法给它配上一样的路由条目,看一下会消失什么状况: R1(config)#ip route 2.2.1.0 255.255.255.0 192.168.12.2 R1(config)#ip route 2.2.2.0 255.255.255.0 192.168.12.2R1(config)#ip route 2.2.3.0 255.255.255.0 192.168.12.2R1#sh ip route staR1#sh ip route static2.0.

10、0.0/24 is subnetted, 3 subnetsS 2.2.1.0 is directly connected, Serial1/11/0 via 192.168.12.2S 2.2.2.0 is directly connected, Serial1/11/0 via 192.168.12.2S 2.2.3.0 is directly connected, Serial1/11/0 via 192.168.12.2 R1认为现在R1到达R2后面的直连网络可以有两条路走了,其实只有这一条通道,却被R1认为是两条不同的路。可见,这两种方法需要依据状况使用,否则可能会消失路由选择的问题

11、。Floating Static Routes 设置一条治理距离稍大于正常使用的一条静态路由,这样一来,当正常链路DOWN后,这条稍大的路由条目立刻可以UP起来替代正常路由条目工作。 (1)Router(config)#ip route 1.1.1.0 255.255.255.0 192.168.123.2 (2)Router(config)#ip route 1.1.1.0 255.255.255.0 192.168.12.2 50 如上,当(1)down后,(2)会自动地up,顶替(1) 以下为例题: 1、Users on the 172.17.22.0 network cannot re

12、ach the server located on the 172.31.5.0 network. The network administrator connected to router Coffee via the console port, issued the show ip route command, and was able to ping the server. Based on the output of the show ip route command and the topology shown in the graphic, what is the cause of

13、 the failure? A: The network has not fully converged. B: IP routing is not enabled. C: A static route is configured incorrectly. D: The FastEthernet interface on Coffee is disabled. E: The neighbor relationship table is not correctly updated. F: The routing table on Coffee has not updated . Correct

14、Answers: C 该题中,172.18.22.0网段的用户无法访问到172.31.5.0的服器,治理员通过show ip route命令看到了如下的路由表记录,试分析哪些说法是正确的。 首先比拟以下两条直连路由条目,正常;下面的一条静态默认路由的下一跳地址却有问题,由于网络中并没有172.19.22.2这个地址。假设现在从 172.17.22.0有主机A向172.31.5.0中的SERVER发送信息,数据报文进入Coffee后,Coffee经过查表得知,该路由条目并未存在于路由表中,所以被匹配默认路由,交给下一跳172.19.22.2,但是Coffee却发觉并不知道 172.19.22.2应当怎么走,所以该数据包被丢弃。

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 高等教育 > 习题/试题

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号