MPLS TE CBR*法则Administrate-weight

TE administrate-weight(即TE cost)

默认情况下,根据 cost 可以知道 tunnel 14 优选黄色链路作为最优路径,因为 TE cost = IGP cost(缺省下),即是等于 ospf metric

(1) 默认情况下 TE cost 和 IGP cost 是一样的,可以基于接口配置
r5(config)#int e0/0.56    (对于 TE 的任何参数来说都是基于出接口方向的)
r5(config-subif)#mpls traffic-eng administrative-weight 1
r6(config)#int e0/0.36
r6(config-subif)#mpls traffic-eng administrative-weight 1    (使得蓝色链路 cost < 黄色链路 cost)

r1#mpls traffic-eng reoptimize    (让 MPLS TE 重新收敛)

(2) Tunnel 默认使用 TE cost 作为选路参考(可以是 IGP & TE cost)
r1(config)#interface tunnel 14
r1(config-if)#tunnel mpls traffic-eng path-selection metric igp / te    (默认是参考TE)
由于在步骤 (1) 中 TE tunnel 的选路默认参照属性是 TE cost,再经过修改为 IGP 选路参考就可以知道 OSPF meiric从始至终都没有改变,所以将会再次优选回黄色链路

原文地址:https://www.cnblogs.com/cyrusxx/p/12824072.html