实验要求:
所有路由器进行最佳选路
IP:
r1配置:
[r1]ip ip-prefix aa permit 192.168.1.0 24 greater-equal 27
[r1]ip ip-prefix aa permit 192.168.1.0 24 less-equal 27
[r1]ip ip-prefix aa permit 192.168.1.0 24 greater-equal 25 less-equal 27
[r1]ip ip-prefix aa permit 192.168.1.0 24 greater-equal 27 less-equal 27
[r1]ip ip-prefix aa permit 192.168.1.1 32
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]rip metricin ip-prefix aa 5
[r1]ip ip-prefix 123 permit 24.0.0.0 24
[r1]rip
[r1-rip-1]filter-policy ip-prefix aa import g0/0/0
r2配置:
[r2]ospf 1
[r2-ospf-1]import-route rip
r3配置:
[r3]ospf 1
[r3-ospf-1]import-route rip
[r3]int LoopBack 0
[r3-LoopBack0]ospf network-type broadcast
[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
[r3-ospf-1]filter-policy ip-prefix aa export
路由表: