思科:
ip prefix-list ospf-driect seq 30 permit 10.30.0.0/16 le 32
ip prefix-list ospf-static seq 10 permit 10.0.0.0/16 le 32
ip prefix-list ospf-static seq 11 permit 10.1.0.0/16 le 32
ip prefix-list ospf-static seq 12 permit 10.2.0.0/16 le 32
ip prefix-list ospf-static seq 20 permit 10.101.0.0/16 le 32
ip prefix-list ospf-static seq 30 permit 10.30.0.0/16 le 32
ip prefix-list ospf-static seq 40 permit 10.40.0.0/16 le 32
ip prefix-list ospf-static seq 130 permit 10.130.0.0/16 le 32
route-map LX-ospf-driect permit 10
match ip address prefix-list ospf-driect
route-map LX-ospf-static permit 10
match ip address prefix-list ospf-static
router ospf 100
redistribute connected subnets route-map LX-ospf-driect
redistribute static subnets route-map LX-ospf-static
华三
ip ip-prefix ospf-static index 10 permit 10.0.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 11 permit 10.1.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 12 permit 10.2.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 20 permit 10.101.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 30 permit 10.30.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 40 permit 10.40.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 130 permit 10.130.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 201 permit 10.201.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 202 permit 10.202.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 203 permit 10.203.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 204 permit 10.204.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 205 permit 10.205.0.0 16 greater-equal 16 less-equal 32
ip ip-prefix ospf-static index 206 permit 10.206.0.0 16 greater-equal 16 less-equal 32
route-policy BGW-ospf-direct permit node 10
if-match ip-prefix ospf-direct
route-policy BGW-ospf-static permit node 10
if-match ip-prefix ospf-static
ospf 100 router-id 172.17.2.1
import-route direct route-policy BGW-ospf-direct
import-route static route-policy BGW-ospf-static