需求:
192.168.1.0--拒绝
192.168.2.0--类型一
192.168.3.0--种子度量改为10
192.168.4.0--打上tag 666 类型一 种子度量10
12.0.0.0--正常放通
一.拓扑
二.配置ip
r1
r2
r3
三.配置ofps和rip
四.双向重发布
五.路由策略
1
2
3
[r2]ip ip-prefix a permit 192.168.3.0 24
[r2]route-policy aa permit node 30
[r2-route-policy]if-match ip-prefix aa
[r2-route-policy]apply cost 10
4
[r2]ip ip-prefix b permit 192.168.4.0 24
[r2]route-policy aa permit node 40
[r2-route-policy]if-match ip-prefix b
[r2-route-policy]apply tag 666
[r2-route-policy]apply cost-type type-1
[r2-route-policy]apply cost 10
5
[r2]route-policy aa permit node 1000
六.调用
[r2-ospf-1]import-route rip route-policy aa