标签:work ima direct 51cto src 高级 不能 com 部署
一、实验拓扑:R1(config)#int lo1
R1(config-if)#ip add 172.16.1.1 255.255.255.0
R1(config-if)#int lo2
R1(config-if)#ip add 172.16.2.1 255.255.255.0
R1(config-if)#int lo3
R1(config-if)#ip add 172.16.3.1 255.255.255.0
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 12.1.1.1
R1(config-router)#network 172.16.1.1
R1(config-router)#network 172.16.2.1
R1(config-router)#network 172.16.3.1
R2(config)#int f0/0
R2(config-if)#no shutdown
R2(config-if)#ip add 12.1.1.2 255.255.255.0
R2(config)#int f0/1
R2(config-if)#no shutdown
R2(config-if)#ip add 23.1.1.2 255.255.255.0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 12.1.1.2
R2(config-router)#network 23.1.1.2
R3(config)#int f0/0
R3(config-if)#no shutdown
R3(config-if)#ip add 23.1.1.3 255.255.255.0
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 23.1.1.3
注意:router rip 中不能有no auto-summary命令
三、验证:
1、未部署汇总前,都是单独的:
R3#show ip route
23.0.0.0/24 is subnetted, 1 subnets
C 23.1.1.0 is directly connected, FastEthernet0/0
172.16.0.0/24 is subnetted, 3 subnets
R 172.16.1.0 [120/2] via 23.1.1.2, 00:00:24, FastEthernet0/0
R 172.16.2.0 [120/2] via 23.1.1.2, 00:00:24, FastEthernet0/0
R 172.16.3.0 [120/2] via 23.1.1.2, 00:00:24, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
R 12.1.1.0 [120/1] via 23.1.1.2, 00:00:24, FastEthernet0/0
2、部署汇总命令后:
R1(config)#int f0/0
R1(config-if)#ip summary-address rip 172.16.0.0 255.255.0.0
R3#clear ip route *
R3#show ip rip database
①以下为自动汇总结果:
R3#show ip route
23.0.0.0/24 is subnetted, 1 subnets
C 23.1.1.0 is directly connected, FastEthernet0/0
R 172.16.0.0/16 [120/2] via 23.1.1.2, 00:00:20, FastEthernet0/0
12.0.0.0/24 is subnetted, 1 subnets
R 12.1.1.0 [120/1] via 23.1.1.2, 00:00:20, FastEthernet0/0
R3#show ip rip database
12.0.0.0/8 auto-summary
12.0.0.0/8
[1] via 23.1.1.2, 00:00:09, FastEthernet0/0
12.1.1.0/24
[1] via 23.1.1.2, 00:01:59, FastEthernet0/0
23.0.0.0/8 auto-summary
23.1.1.0/24 directly connected, FastEthernet0/0
172.16.0.0/16 auto-summary
172.16.0.0/16
[1] via 23.1.1.2, 00:00:09, FastEthernet0/0
②以下为手工汇总结果:
标签:work ima direct 51cto src 高级 不能 com 部署
原文地址:http://blog.51cto.com/13856092/2137467