超级经典-CCNA培训课件 RIP实验.doc_第1页
超级经典-CCNA培训课件 RIP实验.doc_第2页
超级经典-CCNA培训课件 RIP实验.doc_第3页
超级经典-CCNA培训课件 RIP实验.doc_第4页
超级经典-CCNA培训课件 RIP实验.doc_第5页
免费预览已结束,剩余14页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、RIPv1发送路由规则a、掩码相同R1#show runinterface Loopback0 ip address 10.1.2.1 255.255.255.0! interface Loopback1 ip address 11.1.1.1 255.255.255.0 interface Serial1/0 ip address 10.1.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000router rip network 10.0.0.0 network 11.0.0.0interface Serial1/0 ip address 10.1.1.2 255.255.255.0 serial restart-delay 0router rip network 10.0.0.0!R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 2 subnetsR 10.1.2.0 120/1 via 10.1.1.1, 00:00:25, Serial1/0C 10.1.1.0 is directly connected, Serial1/0R 11.0.0.0/8 120/1 via 10.1.1.1, 00:00:25, Serial1/0b、掩码不同interface Loopback0 ip address 10.1.2.1 255.255.255.0! interface Loopback1 ip address 11.1.1.1 255.255.255.0!interface Loopback2 ip address 10.1.3.1 255.255.255.224!interface Loopback3 ip address 10.1.4.1 255.255.255.255!R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masksR 10.1.2.0/24 120/1 via 10.1.1.1, 00:00:18, Serial1/0C 10.1.1.0/24 is directly connected, Serial1/0R 10.1.4.1/32 120/1 via 10.1.1.1, 00:00:01, Serial1/0R 11.0.0.0/8 120/1 via 10.1.1.1, 00:00:18, Serial1/0c、特例R 10.1.4.1/32 120/1 via 10.1.1.1, 00:00:01, Serial1/0 32位子网掩码2、RIPv1接收路由规则R1#show runninterface Loopback0 ip address 11.1.1.1 255.255.255.0! interface Serial1/0 ip address 10.1.1.1 255.255.255.0interface Loopback0 ip address 11.1.1.2 255.255.255.0interface Serial1/0 ip address 10.1.1.2 255.255.255.0R2#debug ip rip RIP protocol debugging is onR2#*Mar 1 01:07:00.211: RIP: received v1 update from 10.1.1.1 on Serial1/0*Mar 1 01:07:00.211: 11.0.0.0 in 1 hopsR2#*Mar 1 01:07:14.551: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (10.1.1.2)*Mar 1 01:07:14.551: RIP: build update entries*Mar 1 01:07:14.551: network 11.0.0.0 metric 1R2#*Mar 1 01:07:16.011: RIP: sending v1 update to 255.255.255.255 via Loopback0 (11.1.1.2)*Mar 1 01:07:16.011: RIP: build update entries*Mar 1 01:07:16.011: network 10.0.0.0 metric 1R2#*Mar 1 01:07:28.203: RIP: received v1 update from 10.1.1.1 on Serial1/0*Mar 1 01:07:28.203: 11.0.0.0 in 1 hopsR2#un allAll possible debugging has been turned off3、RIPv2手工汇总Gateway of last resort is not set 2.0.0.0/8 is variably subnetted, 4 subnets, 2 masksR 2.2.2.0/24 120/1 via 12.1.1.1, 00:00:04, Serial1/0R 2.0.0.0/8 120/1 via 12.1.1.1, 00:01:00, Serial1/0R 2.2.3.0/24 120/1 via 12.1.1.1, 00:00:04, Serial1/0R 2.2.4.0/24 120/1 via 12.1.1.1, 00:00:04, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial1/0R1# 2.0.0.0/16 is subnetted, 1 subnetsR 2.2.0.0 120/1 via 12.1.1.1, 00:00:08, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial1/04、RIPv2的计时器的修改R1#show ip protocols Routing Protocol is rip Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Sending updates every 30 seconds, next due in 20 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Redistributing: rip Default version control: send version 2, receive version 2 Interface Send Recv Triggered RIP Key-chain Serial1/0 2 2 Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 12.0.0.0 Routing Information Sources: Gateway Distance Last Update 12.1.1.1 120 00:00:05 Distance: (default is 120)Enter configuration commands, one per line. End with CNTL/Z.R1(config)#router ripR1(config-router)#timers basic 60 300 600 700R1(config-router)#exitR1#show ip protocols Routing Protocol is rip Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Sending updates every 60 seconds, next due in 35 seconds Invalid after 300 seconds, hold down 600, flushed after 700 Redistributing: rip Default version control: send version 2, receive version 2 Interface Send Recv Triggered RIP Key-chain Serial1/0 2 2 Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 12.0.0.0 Routing Information Sources: Gateway Distance Last Update 12.1.1.1 120 00:00:24 Distance: (default is 120)5、RIPv2的单播更新*在没有passive-interface的情况下,直接指定neighbor,会出现什么样的更新情况,debug ip rip* R1#show runninterface Loopback0 ip address 1.1.1.1 255.255.255.0! interface Ethernet0/0 ip address 123.1.1.1 255.255.255.0 full-duplexrouter rip passive-interface Ethernet0/0 network 1.0.0.0 network 123.0.0.0R2#show runninterface Loopback0 ip address 2.2.2.1 255.255.255.0! interface Ethernet0/0 ip address 123.1.1.2 255.255.255.0 full-duplexrouter rip passive-interface Ethernet0/0 network 2.0.0.0 network 123.0.0.0 neighbor 123.1.1.3R3#show runninterface Loopback0 ip address 3.3.3.1 255.255.255.0! interface Ethernet0/0 ip address 123.1.1.3 255.255.255.0 full-duplexrouter rip passive-interface Ethernet0/0 network 3.0.0.0 network 123.0.0.0 neighbor 123.1.1.2R1#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0 123.0.0.0/24 is subnetted, 1 subnetsC 123.1.1.0 is directly connected, Ethernet0/0R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 120/1 via 123.1.1.3, 00:00:19, Ethernet0/0 123.0.0.0/24 is subnetted, 1 subnetsC 123.1.1.0 is directly connected, Ethernet0/0R2#R3#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not setR 2.0.0.0/8 120/1 via 123.1.1.2, 00:00:23, Ethernet0/0 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0 123.0.0.0/24 is subnetted, 1 subnetsC 123.1.1.0 is directly connected, Ethernet0/0R3#*Mar 1 00:25:00.207: RIP: received v1 update from 123.1.1.2 on Ethernet0/0*Mar 1 00:25:00.211: 2.0.0.0 in 1 hops*Mar 1 00:25:00.211: RIP: received v1 update from 123.1.1.2 on Ethernet0/0*Mar 1 00:25:00.211: 2.0.0.0 in 1 hops*Mar 1 00:25:00.227: RIP: sending v1 update to 255.255.255.255 via Ethernet0/0 (123.1.1.3)*Mar 1 00:25:00.227: RIP: build update entries*Mar 1 00:25:00.227: network 3.0.0.0 metric 1*Mar 1 00:25:00.231: RIP: sending v1 update to 123.1.1.2 via Ethernet0/0 (123.1.1.3)*Mar 1 00:25:00.231: RIP: build update entries*Mar 1 00:25:00.231: network 3.0.0.0 metric 1R3#*Mar 1 00:25:26.223: RIP: received v1 update from 123.1.1.2 on Ethernet0/0*Mar 1 00:25:26.227: 2.0.0.0 in 1 hops*Mar 1 00:25:26.227: RIP: received v1 update from 123.1.1.2 on Ethernet0/0*Mar 1 00:25:26.227: 2.0.0.0 in 1 hops*Mar 1 00:25:26.819: RIP: sending v1 update to 255.255.255.255 via Ethernet0/0 (123.1.1.3)*Mar 1 00:25:26.819: RIP: build update entries*Mar 1 00:25:26.819: network 3.0.0.0 metric 1*Mar 1 00:25:26.823: RIP: sending v1 update to 123.1.1.2 via Ethernet0/0 (123.1.1.3)*Mar 1 00:25:26.823: RIP: build update entries*Mar 1 00:25:26.823: network 3.0.0.0 metric 1R3#*Mar 1 00:25:27.275: RIP: sending v1 update to 255.255.255.255 via Loopback0 (3.3.3.1)*Mar 1 00:25:27.275: RIP: build update entries*Mar 1 00:25:27.275: network 2.0.0.0 metric 1*Mar 1 00:25:27.275: network 123.0.0.0 metric 1R3#6、RIP v1和v2的兼容问题R1#show running-config interface Loopback0 ip address 1.1.1.1 255.255.255.0! interface Ethernet0/0 ip address 123.1.1.1 255.255.255.0 ip rip send version 1 2 ip rip receive version 1 2 no ip split-horizon full-duplexrouter rip version 2 network 2.0.0.0 network 123.0.0.0 no auto-summaryR2#show running-config interface Loopback0 ip address 2.2.2.1 255.255.255.0! interface Ethernet0/0 ip address 123.1.1.2 255.255.255.0 full-duplexrouter rip version 1 network 2.0.0.0 network 123.0.0.0R3#show runninterface Loopback0 ip address 3.3.3.1 255.255.255.0! interface Ethernet0/0 ip address 123.1.1.3 255.255.255.0 full-duplexrouter rip version 2 network 3.0.0.0 network 123.0.0.0 no auto-summaryR1#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0R 2.0.0.0/8 120/1 via 123.1.1.2, 00:00:15, Ethernet0/0 3.0.0.0/24 is subnetted, 1 subnetsR 3.3.3.0 120/1 via 123.1.1.3, 00:00:27, Ethernet0/0 123.0.0.0/24 is subnetted, 1 subnetsC 123.1.1.0 is directly connected, Ethernet0/0R3#show ip rouR3#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not setR 2.0.0.0/8 120/2 via 123.1.1.2, 00:00:17, Ethernet0/0 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0 123.0.0.0/24 is subnetted, 1 subnetsC 123.1.1.0 is directly connected, Ethernet0/0R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 120/1 via 123.1.1.1, 00:00:12, Ethernet0/0 123.0.0.0/24 is subnetted, 1 subnetsC 123.1.1.0 is directly connected, Ethernet0/07、偏移列表R1#show runninterface Serial1/0 ip address 172.16.1.2 255.255.255.0 serial restart-delay 0!interface Serial1/1 ip address 192.168.1.1 255.255.255.0 serial restart-delay 0router rip network 172.16.0.0 network 192.168.1.0R2#show runnip address 2.2.2.1 255.255.255.0interface Serial1/0 ip address 172.16.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000router rip network 2.0.0.0 network 172.16.0.0 R3#show runnnterface Serial1/1 ip address 192.168.1.2 255.255.255.0 serial restart-delay 0 clock rate 64000router rip offset-list 1 in 3 Serial1/1 network 3.0.0.0 network 192.168.1.0access-list 1 permit 2.2.2.0access-list 1 permit 2.0.0.0R3#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not setR 2.0.0.0/8 120/4 via 192.168.1.1, 00:00:26, Serial1/1R 172.16.0.0/16 120/1 via 192.168.1.1, 00:00:26, Serial1/1C 192.168.1.0/24 is directly connected, Serial1/18、路由过滤R2#show runninterface Loopback0 ip address 2.2.2.1 255.255.255.0interface Serial1/0 ip address 172.16.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000router rip network 2.0.0.0 network 172.16.0.0 distribute-list 1 in Serial1/0access-list 1 permit 3.0.0.0R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0R 3.0.0.0/8 120/1 via 172.16.1.2, 00:00:25, Serial1/0 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Serial1/09、解决不连续子网第2地址R1#show runninterface Serial1/0 ip address 10.1.12.2 255.255.255.0 secondary ip address 192.168.1.1 255.255.255.0 serial restart-delay 0 clock rate 64000 interface Serial1/1 ip address 10.1.13.2 255.255.255.0 secondary ip address 192.168.2.1 255.255.255.0 serial restart-delay 0 clock rate 64000router rip network 10.0.0.0 network 192.168.1.0R2#show runninterface Loopback0 ip address 10.1.1.1 255.255.255.0interface Serial1/0 ip address 10.1.12.1 255.255.255.0 secondary ip address 192.168.1.2 255.255.255.0 router rip network 10.0.0.0 network 192.168.1.0R3#show runninterface Loopback0 ip address 10.1.2.1 255.255.255.0interface Serial1/1 ip address 10.1.13.1 255.255.255.0 secondary ip address 192.168.2.2 255.255.255.0router rip network 10.0.0.0 network 192.168.2.0R1#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS 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 routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 5 subnetsC 10.1.13.0 is directly connected, Serial1/1C 10.1.12.0 is directly connected, Serial1/0R 10.1.2.0 120/1 via 10.1.13.1, 00:00:05, Serial1/1R 10.1.1.0 120/1 via 10.1.12.1, 00:00:07, Serial1/0R 10.0.0.0 120/1 via 192.168.2.2, 00:00:05, Serial1/1 120/1 via 192.168.1.2,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论