在 OSPF 协议中引入 RIP 路由
[r2]ospf 1
[r2-ospf-1]import-route rip
[r3]ospf 1
[r3-ospf-1]import-route rip
[r3]int l0
[r3-LoopBack0]ospf network-type broadcast
[r1-GigabitEthernet0/0/0]rip metricin ip-prefix aa 5
[r1]ip ip-prefix 123 permit 24.0.0.0 24
[r1-rip-1]filter-policy ip-prefix aa import g0/0/0
[r3]ip ip-prefix aa deny 12.0.0.0 24
[r3]ip ip-prefix aa permit 0.0.0.0 0 less-equal 32
[r3-ospf-1]filter-policy ip-prefix aa export
R1:
R2:
R3: