2-高级路由:RIP路由汇总

一、实验拓扑:
2-高级路由:RIP路由汇总
二、命令部署:
R1(config)#int f0/0
R1(config-if)#no shutdown
R1(config-if)#ip add 12.1.1.1 255.255.255.0

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
②以下为手工汇总结果:
2-高级路由:RIP路由汇总

2-高级路由:RIP路由汇总

转载于:https://blog.51cto.com/13856092/2137467

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值