通过策略路由完成控制, 比如:
ospf 1
default-route-advertise type 1
import-route static route-policy import-static
area 0.0.0.0
network x.x.x.x 0.0.0.3
route-policy import-static permit node 10
if-match ip-prefix permit-static
#
ip ip-prefix permit-static index 10 permit 192.168.x.x 24 //静态路由指定的网段
来源:51CTO
作者:dfsshan
链接:https://blog.51cto.com/dfsshan/2393212