注:執行缺省下一跳命令(apply ip-address default next-hop)的前提是,在策略路由中報文沒有配置下一跳,或者配置的下一跳無效,並且報文目的IP地址在路由表中沒有查到相應的路由,這時纔會使用策略路由配置的缺省下一跳。 優先級:策略路由的下一跳 > 路由表 > 策略路由的默認下一跳
策略路由也可與track聯動
nqa entry admin guazi type icmp-echo destination ip 114.114.114.114 frequency 1000 next-hop x.x.x.x //出口下一跳地址 reaction 1 checked-element probe-fail threshold-type consecutive 10 action-type trigger-only track 10 nqa entry admin guazi reaction 1nqa schedule admin guazi start-time now lifetime forever policy-based-route XX_PBR permit node 1 if-match acl 3000 apply next-hop 58.x1 track 10 //爲保證策略路由最優,使用next-hop