一个网段内,IP地址(末位奇数)走电信,IP地址(末位偶数)走联通
当某个运营商不可达时,自动切换。
通过NQA来确定运营商是否可达。,并与流行为、静态路由联动,实现自动切换。
默认路由走电信,当电信不可达走联通(根据配置的路由优先级,华为交换机静态路由默认优先级为60).
acl number 3001
description dan-dianxin
rule 10 permit ip source 10.50.8.1 0.0.3.254
acl number 3002
description shuang-liantong
rule 10 permit ip source 10.50.8.0 0.0.3.254
#
traffic classifier SSR2 operator or
if-match acl 3002
traffic classifier SSR1 operator or
if-match acl 3001
traffic behavior SSR1
redirect ip-nexthop 27.191.229.129 track nqa xxf dan
traffic behavior SSR2
redirect ip-nexthop 60.2.202.149 track nqa xxf shuang
//若不用NQA,只能保证路由器直连链路断掉后的路由自动切换,无法保证运营商内部的问题导致的断网被检测出来。
#
traffic policy SSR
classifier SSR1 behavior SSR1
classifier SSR2