CCNA考试主要知识点指导
添加时间: 2008-2-21 16:22:45 作者: Cisco指导 阅读次数:33 来源: http://www.d9soft.com
IP routing (四)
IP routing在CCNA考试中是比较重要的部份,虽然在Cisco的router上configure the IP
routing 的命令并不多,但中间的 原理 比较的多。如果你MCSE的TCP/IP考试复习的比较好的,对这一部份的理解应该不是很难,但是如果你MCSE中的T CP/IP课程没有学好,或没有参加过MCSE考试的话,对这一部分你需要花费更多的精力。
IP routing 有两种:
static routing 和dynamic routing
顾名思义,static routing要让你人工的configure 所有的routing table,
虽然系统的overhead比较少,但人总是会犯错误的。如果你 网络 中间configuration经常变化的话,用static routing 会非常的费事。
用下面的命令configure the static routing table
RouterA(config)#ip route 1.1.2.0 255.255.255.0 1.1.1.1
上面命令的意思是如果你要道1.1.2.0这个subnet(subnet mask is
255.255.255.0), 你要通过 1.1.1.1这个IP address. 1.1.1.1
一般是另外一台router上的一个interface.
dynamice routing 需要routing protocol(象RIP 和OSPF)的介入.
在CCNA的考试中,大家要区分开 routing protocol 和routed protocol的区别。routing
protocol是帮你来建routing table的。不然的话,如果你使用static routing,
你要人工configure the routing table. 而routed protocol是指这个network
protocol 是否能routable, 也就是是否可以用router 来连接这个protocol.
象TCP/IP, IPX/SPX是routed protocol(或routable protocol). 而NetBEUI是unroutable
protocol.
主要的routing protocol有以下一些:
1. Interior Routing Protocols:
1.1 Distance Vector
RIP, IGRP
1.2 Link State
OSPF
1.3 Balanced Hybrid
EIGRP
2. Exterior Routing Protocols
EGP, BGP
在实际中用的最广的是RIP和OSPF。而EIGRP和IGRP是Cisco独创的,所以只有在Cisco的router上才支持。
RIP
1. Updates every 30 seconds (RIP) or 90 seconds (IGRP)
2. Hop/Metric-based route selection
code:
--------------------------------------------------------------------------------
10M 10M R1 -------- R2 ------R3 |____________________| 56K
--------------------------------------------------------------------------------
如果你的router按上面的方式连接,R1和R3之间有两条路径 ------- 和
__________的。
对RIP来说, 它会比较两条路径:如果走------。中间要经过一个router,
而如果走____ 中间没有router, 所以RIP会选______这条路径。虽然它并不是最快的。
在CCNA考试中从R1到R2叫做一个hop, 从R2到R3也要一个hop. 如果走
----,要两个hop. 而走___,只要一个hop. 所以RIP永远是找hop最少的路径。
Routing Loop
想象有下面的情况:
code:
--------------------------------------------------------------------------------
R1 ---------R2 | | subnet1 subnet2
--------------------------------------------------------------------------------
如果R1刚传出subnet1的信息,subnet1却down了,这个时候R2会收到subnet1的信息。
过30秒钟后,R1上没有subnet1的信息,但会从R2再传回来,只是hop加1。
然后R1又会把这个信息传出去,传到R2的时候,R2会认为这个信息从R1来的,只是hop再加1。一直这样下去,就形成了routing
loop.
1. 解决的办法有下面一些,在 Cisco router里面都是支持的。
1.Counting to infinity
如果hop到15的时候,算成是infinity,就不会再advertise
back了。让对方router里面的内容expire.
2.Split horizon
从哪个interface来的,就不advertise back了。
但split horizon并不能解决所有的问题,因为有可能有R3.
subnet1的信息虽然不能传会R1,但会传到R3, R3还会传到R1的。
3.Hold-down
根据invalid period, 象90秒以后,hold-down.
When learning about a failed route, ignore any new information about
that subnet for a time equal to the hold-down timer
Three events that will reset hold-down timer:
1.Hold-down timer expires
2. The router receives a processing task proportional to the number of
links in the internetwork
3. Another update is received indicating the network status has changed
4.Route poisoning (Poison Reverse)
一般的如果subnet1 down了的话,一般不mention subnet1 down, 但route
poisoning告诉附近的router subnet1 down了。 而不用象hold-down,
要90秒以后再hold down.
5. trigged updates
如果R1 刚advertise subnet1 的信息到R2,subnet2, 对trigged updates
来说,并不用等30秒再advertise, 而是立即advertise.
用下面的命令config RIP.
Router#config t
Router(config)#router rip
RouterA(config-router)#network 1.1.1.0
RouterA(config-router)#^Z
RouterA#sh ip route
用下面的命令config IGRP
Router#config t
RouterA(config)#no router rip
RouterA(config)#router igrp 99
RouterA(config-router)#network 1.1.1.0
RouterA(config-router)#^Z
因为无法比较source的reliability.
IOS Default Administrative Distances
Directly Connected 0
Static Route 1
IGRP 100
OSPF 110
RIP 120
Unkown 255
(五)
上次讲了TCP/IP,今天来谈谈Novell 的IPX/SPX. 其实在考MCSE的时候有许多和Novell有关的题目,但大多数是让NT 或2000如何给NetWare client 提供service的。而许多人考过MCSE以后,对Novell内部的工作还不是很清楚。
我们可以先来比较一下IPX/SPX, 和TCP/IP。
IPX和IP类似,工作在network layer.
SPX和TCP类似,工作在transport layer.
看IPX/SPX 和TCP/IP的用法就很有意思, 我觉得TCP/IP的说法比较直观,因为TCP在transport layer, IP 在network layer, transport layer在network layer 上面,所以 用TCP/IP, TCP 在IP的上面。 而IPX/SPX却正好相反, 明明SPX在IPX的上面,写的时候IPX反而在SPX上面。很没有道理。
其实IPX/SPX这也就是Novell自己一家做的protocol了,所以怎么订都有它自己来订。不象TCP/IP是业界的标准。而从历史上来看,不开放的系统是没有前途的。A pple就是一个活生生的例子。而Novell也犯了同样的错误。所以现在只能惨淡经营了。
SAP 是一个IPX的protocol. 让server间每60秒交换一下信息,知道别的server上有什么resources. 每个计算机都有个SAP table. SAP有SAP identifier ( 4 == file server, 7 = printer server)
和TCP/IP 相比,这种每个server上都有SAP table的模式不是很scalable.无法扩建很大的网路。
RIP 是 distance-vector protocol
NLSP Netware Link Service Protocol, 是link-state routing protocol
CCNA考试主要知识点指导(3) 第 [1] [2] [3] [4] [5] 下一页
上一篇文章: CCNA专业英文词汇红宝书---N、O、P、Q篇 下一篇文章: CCNA考试主要知识点指导
相关文章:

