【正文】
no shutdown exit exit exit GDGZMSIPMANXYBRAS017750路由發(fā)布配置configure router policyoptions policystatement Export_Submgmt_Route entry 5 from prefixlist Direct_Route state srrpnonmasterSRRP備用側發(fā)布的路由 exit to protocol bgp exit action reject 抑制該路由的發(fā)布 exit entry 10 from protocol submgmt prefixlist Direct_Route exit to protocol bgp exit action accept exit exit exit GDGZMSIPMANXHBRAS017750全局配置configure ethcfm domain 2 name SRRPHW level 3 association 5 format string name XLDOLT001B bridgeidentifier 10000888 exit ccminterval 1 remotemepid 3 對端OLT的mepid exit exit注:阿朗OLT一個MA可以對應多個MEP,因此兩臺SR的MA值可以配置成一致;華為OLT一個MA只允許對應一個MEP,因此兩臺SR的MA至必須區(qū)分開,此配置采用值后添加Master和Backup的首字母M、B加以區(qū)分。1705levelccinterval1s 創(chuàng)建MA索引號為2/2,String值為BHGWGCOLT001B,與對端DRJLSR的值一致,CC報文發(fā)送周期為1秒cfm1705cfm2 20/0端口mep id設為3,ID與對端保持一致。enablecfm7 設置cfm報文向外轉發(fā)cfm79. 恢復鏈路4,觀察業(yè)務情況預期結果任意鏈路中斷,都可以實現(xiàn)熱備測試結果ping網(wǎng)關ping百度切換還原切換還原第1次3040第2次2020第3次3040ping外網(wǎng)由于涉及到主備SR用戶路由的發(fā)布切換,因為中斷時間會稍長備注主用側SR路由:B:GDGZMSIPMANBRAS01XYALconfigserviceiessubifgrpif show router routetable ===========================================================Route Table (Router: Base)===========================================================Dest Prefix[Flags] Type Proto Age Pref Next Hop[Interface Name] Metric [XLDOLT001] 0備用側SR路由:A:GDGZMSIPMANBRAS01XHAL show router routetable =========================================================Route Table (Router: Base)=========================================================Dest Prefix[Flags] Type Proto Age Pref Next Hop[Interface Name] Metric [OAMSRRP] redundancy 接口 0切換前SRRP狀態(tài):B:GDGZMSIPMANBRAS01XYALconfigserviceies show srrp 100088803 ===========================================================SRRP Instance 100088803===========================================================Description : (Not Specified)Admin State : Up Oper State : masterOper Flags : subnetMismatch Preempt : yes One GARP per SAP : noMonitor Oper Group : None System IP : Service ID : IES 10000888 Group If : XLDOLT001 MAC Address : 0c:a4:02:b0:71:45Grp If Description : N/AGrp If Admin State : Up Grp If Oper State: UpSubscriber If : OAMSRRPTest Sub If Admin State : Up Sub If Oper State: UpAddress : : Address : : Redundant If : OAMSRRP Red If Admin State : Up Red If Oper State: UpAddress : Red Spokesdp : 1243:10000888 Msg Path SAP : lag4: Admin Gateway MAC : Oper Gateway MAC : 00:00:5e:00:01:e3Config Priority : 120 Inuse Priority : 120Master Priority : 120 Keepalive Interval : 50 deciseconds Master Since : 04/15/2013 19:41:40Fib Population Mode : all VRRP Policy 1 : None VRRP Policy 2 : NoneB:GDGZMSIPMANBRAS01XYALconfigserviceies show router bgp neighbor advertisedroutes | match A:GDGZMSIPMANBRAS01XHAL show srrp 100088803 ===========================================================SRRP Instance 100088803===========================================================Description : (Not Specified)Admin State : Up Oper State : backupShunt—備用狀態(tài)Oper Flags : subnetMismatch Preempt : yes One GARP per SAP : noMonitor Oper Group : None System IP : Service ID : IES 10000888 Group If : XLDOLT001 MAC Address : 8c:90:d3:71:00:68Grp If Description : N/AGrp If Admin State : Up Grp If Oper State: UpSubscriber If : OAMSRRPTest Sub If Admin State : Up Sub If Oper State: UpAddress : : Redundant If : OAMSRRP Red If Admin State : Up Red If Oper State: UpAddress : Red Spokesdp : 1239:10000888 Msg Path SAP : lag23: Admin Gateway MAC : Oper Gateway MAC : 00:00:5e:00:01:e3Config Priority : 100 Inuse Priority : 100Master Priority : 120 Keepalive Interval : 50 deciseconds Master Since : 04/15/2013 19:40:08Master Down Interval: sec (Expires in sec)Fib Population Mode : all VRRP Policy 1 : None VRRP Policy 2 : NoneA:GDGZMSIPMANBRAS01XHAL show router bgp neighb