1、超级经典CCNA培训课件 RIP实验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.0interf
2、ace 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 typ
3、e 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 subnett
4、ed, 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 addr
5、ess 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
6、 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
7、 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接收路由规则R
8、1#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: re
9、ceived 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
10、 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
11、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:
12、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
13、 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
14、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 confi
15、guration 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 Se
16、nding 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
17、 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! int
18、erface 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-interfac
19、e 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
20、 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-
21、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
22、 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
23、, 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
24、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
25、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
26、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*M
27、ar 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.
28、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
29、: 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.
30、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
31、: 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-summary
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1