在R1和R4上面分別進行OSPF和ISIS的相互引入,ISIS引入到OSPF的路由類型爲2,可是全部的網絡路由全網可見;node
R1和R4訪問外部路由要走最優的路徑;網絡
OSPF area 34不能有ISIS區域的路由,R5到R2的loopback口要有等價的路由,一樣R2到R5的loopback口也要有等價路由;app
邏輯拓撲:oop
R1的配置:spa
route-policy i2o deny node 10 if-match tag 10 route-policy i2o permit node 20 apply cost 10000 apply tag 15 route-policy o2i permit node 20 apply cost 1000 apply tag 10 isis 1 import-route ospf 1 route-policy o2i ospf 1 import-route isis 1 type 2 route-policy i2o
R4的配置:code
route-policy i2o deny node 10 if-match tag 10 route-policy i2o permit node 20 apply cost 1000 apply tag 15 route-policy o2i deny node 10 if-match tag 15 route-policy o2i permit node 20 apply cost 1000 apply tag 10 isis 1 import-route ospf 1 route-policy o2i ospf 1 import-route isis 1 type 2 route-policy i2o
針對於vlan10的路由,tag100進行優先級調整,在R1和R4上都配置blog
route-policy p10 per node 10 if-match tag 100 apply preference 12 ospf 1 preference ase route-policy p10
在R4上配置NSSA區域,不引入ISIS路由(此處配置可在上面的步驟完成)路由
ospf 1 area 34 nssa no-import-route