Bootstrap

双点双向路由引入


在AR2、AR3上通过import-route命令将OSPF的路由引入IS-IS,将IS-IS的路由引入OSPF,AR5上将静态路由192.168.1.0引入OSPF


存在问题:
  1. 次优路径:AR5通过路由引入OSPF的路由的优先级为150,当这条路由经过OSPF被引入到IS-IS内优先级变为15。AR3通过AR1收到的Pre为150,通过AR4收到的Pre为15,Pre小的优先。
  2. 路由回馈
问题现象:

解决思路:
  1. 路由回馈:路由引入时通过路由策略Route-policy打上tag,通过tag区分路由进而permit/deny路由
  2. 次优路径:AR2、AR3上将OSPF自身的路由优先级设置为10,引入的IS-IS路由优先级设置为150

代码实现:

AR2:    

route-policy ospf-into-isis deny node 10
if-match tag 20
route-policy ospf-into-isis permit node 20
apply tag 10

route-policy isis-into-ospf deny node 10
if-match tag 30
route-policy isis-into-ospf permit node 20
apply tag 40

route-policy pre permit node 10
if-match tag 20
apply preference 150

ospf 1
import-route isis 1 route-policy isis-into-ospf
preference ase 10 route-policy pre
isis 1
cost-style wide
import-route ospf 1 route-policy  ospf-into-isis

AR3:

route-policy isis-into-ospf deny node 10 
if-match tag 10
route-policy isis-into-ospf permit node 20
apply tag 20

route-policy ospf-into-isis deny node 10
if-match tag 40
route-policy ospf-into-isis permit node 20
apply tag 30

route-policy pre permit node 10
if-match tag 40
apply preference 150

ospf 1
import-route isis 1 route-policy  isis-into-ospf
preference ase 10 route-policy pre
isis 
cost-style wide
import-route ospf 1 route-policy ospf-into-isis
实现现象:

注意事项:
  1. IS-IS内所有路由器的cost风格改为wide,否则无法携带tag
;