CCNA学习笔记26--RIP版本1与版本2兼容(实验)
实验目的:熟练掌握RIP的版本1与版本2的共存问题
实验拓扑:

实验步骤
1.基本配置
2.配置端口ip
1.基本配置
2.配置端口ip
3.在R3上配置RIPv1在R1 R2上配置RIPv2
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 11.0.0.0
R1(config-router)#network 12.0.0.0
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 11.0.0.0
R1(config-router)#network 12.0.0.0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 22.0.0.0
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 22.0.0.0
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R3(config)#router rip
R3(config-router)#version 1
R3(config-router)#network 33.0.0.0
R3(config-router)#network 23.0.0.0
R3(config-router)#version 1
R3(config-router)#network 33.0.0.0
R3(config-router)#network 23.0.0.0
4.检查
R3#show ip route
C 23.1.1.0/24 is directly connected, Ethernet0/0
C 33.1.1.0/24 is directly connected, Loopback0
//在R3上,发现已经没有学到RIP的路由
R3#show ip route
C 23.1.1.0/24 is directly connected, Ethernet0/0
C 33.1.1.0/24 is directly connected, Loopback0
//在R3上,发现已经没有学到RIP的路由
R2#show ip route
R 11.1.1.0 [120/1] via 12.1.1.1, 00:00:04, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Ethernet0/0
C 22.1.1.0/24 is directly connected, Loopback0
C 23.1.1.0/24 is directly connected, Ethernet0/1
//在R2上也学不到R3的路由
R 11.1.1.0 [120/1] via 12.1.1.1, 00:00:04, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Ethernet0/0
C 22.1.1.0/24 is directly connected, Loopback0
C 23.1.1.0/24 is directly connected, Ethernet0/1
//在R2上也学不到R3的路由
4.在R2的与R3连接的端口做配置,不再发送和接受RIPv2的更新,而是发送和接受RIPv1的更新。实现R2的RIPv2与R3的RIPv1的兼容
R2(config)#interface ethernet 0/1
R2(config-if)#ip rip send version 1
R2(config-if)#ip rip receive version 1
R2(config)#interface ethernet 0/1
R2(config-if)#ip rip send version 1
R2(config-if)#ip rip receive version 1
R2#show ip route
R 11.1.1.0 [120/1] via 12.1.1.1, 00:00:29, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 33.0.0.0/8 [120/1] via 23.1.1.3, 00:00:22, Ethernet0/1
C 12.1.1.0/24 is directly connected, Ethernet0/0
C 22.1.1.0/24 is directly connected, Loopback0
C 23.1.1.0/24 is directly connected, Ethernet0/1
R3#show ip route
R 11.0.0.0/8 [120/2] via 23.1.1.2, 00:00:00, Ethernet0/0
R 12.0.0.0/8 [120/1] via 23.1.1.2, 00:00:00, Ethernet0/0
R 22.0.0.0/8 [120/1] via 23.1.1.2, 00:00:00, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.1.1.0/24 is directly connected, Ethernet0/0
C 33.1.1.0/24 is directly connected, Loopback0
R 11.1.1.0 [120/1] via 12.1.1.1, 00:00:29, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
R 33.0.0.0/8 [120/1] via 23.1.1.3, 00:00:22, Ethernet0/1
C 12.1.1.0/24 is directly connected, Ethernet0/0
C 22.1.1.0/24 is directly connected, Loopback0
C 23.1.1.0/24 is directly connected, Ethernet0/1
R3#show ip route
R 11.0.0.0/8 [120/2] via 23.1.1.2, 00:00:00, Ethernet0/0
R 12.0.0.0/8 [120/1] via 23.1.1.2, 00:00:00, Ethernet0/0
R 22.0.0.0/8 [120/1] via 23.1.1.2, 00:00:00, Ethernet0/0
23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 23.1.1.0/24 is directly connected, Ethernet0/0
C 33.1.1.0/24 is directly connected, Loopback0
浙公网安备 33010602011771号