rip路由和动态路由的区别?
RIP只是动态路由的一种,动态路由就是路由器自动学习路径,选择符合条件的最佳路径,包括rip,ospf,eigrp等等,rip主要用在小型网络里面,因为他对路由的条数有限制,规定15跳之后为不可达路径,他有一套自己的算法一跳来计算最优路径,为避免环路采用毒性路由和毒性反转等机制,你可以在网上好好了解一下,希望对你有所帮助
你要问的是如何配置动态路由RIP吧配置好各接口地址后,需要注意以下几点根据实验需要,更改CDP的参数 启用路由器的RIP协议 通告与当前路由器相连的网络号主要操作如下(以下操作是在配置好各接口地址后进行的) R1#conf tEnter configuration commands, one per line.End with CNTL/Z.修改CDP的参数R1(config)#cdp timer 10R1(config)#cdp holdtime 30R1(config)# R1(config)#^Z%SYS-5-CONFIG_I: Configured from console by consoleR1#show cdpGlobal CDP information:Sending CDP packets every 10 secondsSending a holdtime value of 30 secondsSending CDPv2 advertisements is enabledR1#conf tEnter configuration commands, one per line.End with CNTL/Z.启用路由器的RIP协议R1(config)#router rip通告与R1相连接的两个网络R1(config-router)#network 11.0.0.0R1(config-router)#network 21.0.0.0R1(config-router)#exitR1(config)#exitR1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last resort is not setC11.0.0.0/8 is directly connected, Ethernet0C21.0.0.0/8 is directly connected, Serial0R22.0.0.0/8 [120/1] via 21.0.0.2, 00:02:29, Serial0R12.0.0.0/8 [120/1] via 21.0.0.2, 00:05:22, Serial0R13.0.0.0/8 [120/2] via 21.0.0.2, 00:06:29, Serial0R1#ping 13.0.0.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 13.0.0.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms R2#conf tEnter configuration commands, one per line.End with CNTL/Z.R2(config)#cdp timer 10R2(config)#cdp holdtime 30R2(config)#R2(config)#^Z%SYS-5-CONFIG_I: Configured from console by consoleR2#show cdpGlobal CDP information:Sending CDP packets every 10 secondsSending a holdtime value of 30 secondsSending CDPv2 advertisements is enabledR2#conf tEnter configuration commands, one per line.End with CNTL/Z.R2(config)#router ripR2(config-router)#network 21.0.0.0R2(config-router)#network 22.0.0.0R2(config-router)#network 12.0.0.0R2(config-router)#R2(config-router)#^Z%SYS-5-CONFIG_I: Configured from console by consoleR2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last resort is not setC12.0.0.0/8 is directly connected, Ethernet0C21.0.0.0/8 is directly connected, Serial0C22.0.0.0/8 is directly connected, Serial1R11.0.0.0/8 [120/1] via 21.0.0.1, 00:08:38, Serial0R13.0.0.0/8 [120/1] via 22.0.0.2, 00:02:18, Serial1R3#conf tEnter configuration commands, one per line.End with CNTL/Z.R3(config)#cdp timer 10R3(config)#cdp holdtime 30R3(config)#R3(config)#^Z%SYS-5-CONFIG_I: Configured from console by consoleR3#show cdpGlobal CDP information:Sending CDP packets every 10 secondsSending a holdtime value of 30 secondsSending CDPv2 advertisements is enabledR3#conf tEnter configuration commands, one per line.End with CNTL/Z.R3(config)#router ripR3(config-router)#network 22.0.0.0R3(config-router)#network 13.0.0.0R3(config-router)#R3(config-router)#^Z%SYS-5-CONFIG_I: Configured from console by consoleR3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last resort is not setC13.0.0.0/8 is directly connected, Ethernet0C22.0.0.0/8 is directly connected, Serial0R3#show cdp neighborsCapability Codes: R - Router, T - Trans Bridge, B - Source Route BridgeS -Switch, H - Host, i - IGMP, r - RepeaterDevice IDLocal Intrfce HoldtmeCapabilityPlatformPort IDR2Ser0 28 R 26102R3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaE1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate defaultU - per-user static routeGateway of last resort is not setC13.0.0.0/8 is directly connected, Ethernet0C22.0.0.0/8 is directly connected, Serial0R12.0.0.0/8 [120/1] via 22.0.0.1, 00:02:36, Serial0R21.0.0.0/8 [120/1] via 22.0.0.1, 00:09:26, Serial0R11.0.0.0/8 [120/2] via 22.0.0.1, 00:09:35, Serial0R3#ping 11.0.0.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 11.0.0.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms 动态路由已配置完毕,PC1能与PC3连通,测试结果如下 C:>ipconfigBoson BOSS 5.0 IP ConfigurationEthernet adapter Local Area Connection:Connection-specific DNS Suffix. : boson.comIP Address. . . . . . . . . . . . : 11.0.0.2Subnet Mask . . . . . . . . . . . : 255.0.0.0Default Gateway . . . . . . . . . : 11.0.0.1C:>tracert 13.0.0.2"Type escape sequence to abort."Tracing the route to 13.0.0.2 1 11.0.0.1 0 msec 16 msec 0 msec2 21.0.0.2 20 msec 16 msec 16 msec3 22.0.0.2 20 msec 16 msec 16 msec4 13.0.0.2 20 msec 16 msec *C:>ping 13.0.0.2Pinging 13.0.0.2 with 32 bytes of data:Reply from 13.0.0.2: bytes=32 time=60ms TTL=241Reply from 13.0.0.2: bytes=32 time=60ms TTL=241Reply from 13.0.0.2: bytes=32 time=60ms TTL=241Reply from 13.0.0.2: bytes=32 time=60ms TTL=241Reply from 13.0.0.2: bytes=32 time=60ms TTL=241Ping statistics for 13.0.0.2: Packets: Sent = 5, Received = 5, Lost = 0 (0%loss),Approximate round trip times in milli-seconds: Minimum = 50ms, Maximum =60ms, Average =55ms
rip路由是动态路由的一种,不有OSPF等,RIP 本身还分RIPV1 ,RIPV2,具体可以参考CCNP教材路由分册
RIP是动态路由的一种
