CCNA学习笔记29--RIPv2自动汇总(实验)
实验目的:理解RIP自动汇总的工作方式
实验拓扑:

实验步骤:
1.基本配置
2.配置端口ip
3.配置RIP,其中启动自动汇总的功能,当然,默认就是开启自动汇总的功能。
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#auto-summary
R1(config-router)#network 11.0.0.0
R1(config-router)#network 12.0.0.0
1.基本配置
2.配置端口ip
3.配置RIP,其中启动自动汇总的功能,当然,默认就是开启自动汇总的功能。
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#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)#auto-summary
R2(config-router)#network 1.0.0.0
R2(config-router)#network 12.0.0.0
R2(config-router)#version 2
R2(config-router)#auto-summary
R2(config-router)#network 1.0.0.0
R2(config-router)#network 12.0.0.0
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#auto-summary
R3(config-router)#network 1.0.0.0
4.检查全网是否互通
R1#ping 1.1.22.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.22.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 1.1.33.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.33.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
5.查看路由表
R1#show ip route
R 1.0.0.0/8 [120/1] via 12.1.1.2, 00:00:25, Ethernet0/0
11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
//R1收到R2R3的路由都被汇总成了主类
R3(config-router)#version 2
R3(config-router)#auto-summary
R3(config-router)#network 1.0.0.0
4.检查全网是否互通
R1#ping 1.1.22.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.22.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
R1#ping 1.1.33.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.33.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
5.查看路由表
R1#show ip route
R 1.0.0.0/8 [120/1] via 12.1.1.2, 00:00:25, Ethernet0/0
11.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
//R1收到R2R3的路由都被汇总成了主类
R2#show ip route
R 1.1.33.0/24 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/1
R 11.0.0.0/8 [120/1] via 12.1.1.1, 00:00:11, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
//对于1.1.33.0/24即R3回环后路由依然是明细的,原因是R2和R3处于同一主类网络,在同一主类网内,传输的是明细。到主类网络的边界就会汇总
R 1.1.33.0/24 [120/1] via 1.1.23.3, 00:00:02, Ethernet0/1
R 11.0.0.0/8 [120/1] via 12.1.1.1, 00:00:11, Ethernet0/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
//对于1.1.33.0/24即R3回环后路由依然是明细的,原因是R2和R3处于同一主类网络,在同一主类网内,传输的是明细。到主类网络的边界就会汇总
R3#show ip route
R 1.1.22.0/24 [120/1] via 1.1.23.2, 00:00:22, Ethernet0/0
R 11.0.0.0/8 [120/2] via 1.1.23.2, 00:00:22, Ethernet0/0
R 12.0.0.0/8 [120/1] via 1.1.23.2, 00:00:22, Ethernet0/0
R 1.1.22.0/24 [120/1] via 1.1.23.2, 00:00:22, Ethernet0/0
R 11.0.0.0/8 [120/2] via 1.1.23.2, 00:00:22, Ethernet0/0
R 12.0.0.0/8 [120/1] via 1.1.23.2, 00:00:22, Ethernet0/0
浙公网安备 33010602011771号