拓扑图:
![](https://i-blog.csdnimg.cn/blog_migrate/936ff026aea603769034a9980fb9bf7b.png)
配置任务:
1. 配置R3,R5双点双向重分发,使R4学到的RIP网络负载均衡。
2. 配置R4学习到1.1.1.1/24的路由优先走R3。
配置详情:
如上的配置任务中 1
有 2
种配置方法:
1. 通过分发列表来实现;
2. 通过修改AD值来实现;
下面分别讲解 2
种配置方法:
没有配置 2
种方法前,各路由器的路由表:
配置参数:
R3:
router ospf 1
redistribute rip metric 40 subnets
network 192.168.34.0 0.0.0.255 area 0
router rip
version 2
redistribute ospf 1 metric 5
network 192.168.23.0
no auto-summary
R5:
router ospf 1
redistribute rip metric 40 subnets
network 192.168.45.0 0.0.0.255 area 0
router rip
version 2
redistribute ospf 1 metric 5
network 192.168.25.0
no auto-summary
R1:
r1#SH IP ROU
C 192.168.12.0/24 is directly connected, Serial0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback1
R 192.168.45.0/24 [120/6] via 192.168.12.2, 00:00:06, Serial0/0
R 192.168.25.0/24 [120/1] via 192.168.12.2, 00:00:06, Serial0/0
R 192.168.23.0/24 [120/1] via 192.168.12.2, 00:00:06, Serial0/0
11.0.0.0/24 is subnetted, 1 subnets
C 11.11.11.0 is directly connected, Loopback11
R 192.168.34.0/24 [120/6] via 192.168.12.2, 00:00:06, Serial0/0
r1#
R2:
r2#sh ip rou
C 192.168.12.0/24 is directly connected, Serial0/2
1.0.0.0/24 is subnetted, 1 subnets