(1) ip access-list
將
所有 static route 由 OSPF 送出
ip access-list static-route
20 deny ip any any
route-map TEST permit 10
match ip address static-route
router ospf 1
redistribute static route-map TEST
(2) ip prefix-list
只有在
prefix-list 清單,static route 才會由 OSPF 送出
ip prefix-list Client seq 10 permit 10.1.11.0/24
ip prefix-list Client seq 20 permit 10.2.12.0/24
route-map TEST permit 10
match ip address prefix-list Client
router ospf 1
redistribute static route-map TEST