重发布实验
作者:互联网
R1换环回重发布引入ospf
R4.R6进行双点双向重发布
![](https://www.icode9.com/i/ll/?i=8af582e2734a49d4898b145c0dc3f506.png)
R4.R6路由表
解决环路
在R6抓取91.1.1.1路由
[r6]ip ip-prefix a1 permit 91.1.1.1 24
[r6]route-policy b1 deny node 10
Info: New Sequence of this List.
[r6-route-policy]if-match ip-prefix a1
[r6-route-policy]q
[r6]route-policy b1 permit node 20
[r6-ospf-100]import-route rip 1 route-policy b1
此时91.1.1.1走23.1.1.1
路由优化
R6上56.1.1.0/24 96.6.6.0/24五类LSA改为Type 1
45.1.1.0/24 重发布进OSPF时cost改大
R5上36.1.1.0/24重发布进RIP时cost值改大
接口宣告94.4.4.0/24 34.1.1.0/24cost值改大
[r4]acl 2000
[r4-acl-basic-2000]rule 5 permit source 36.1.1.0 0
[r4-acl-basic-2000]q
[r4]route-policy c1 permit node 10
Info: New Sequence of this List.
[r4-route-policy]if-match acl 2000
[r4-route-policy]apply cost 3
[r4]route-policy c1 permit node 20
Info: New Sequence of this List.
[r4-route-policy]import-route ospf 100 route-policy c1
[r5]acl 2001
[r5-acl-basic-2001]rule permit source 94.4.4.0 0
[r5-acl-basic-2001]rule permit source 34.1.1.0 0
[r5-acl-basic-2001]q
[r5]ip ip-prefix a1 permit 94.4.4.0 24
[r5]ip ip-prefix a1 permit 34.1.1.0 24
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]rip metricin ip-prefix a1 3
此时R5路由表
标签:24,r5,ip,route,发布,实验,permit,policy 来源: https://blog.csdn.net/m0_51909023/article/details/119304968