【正文】
XHAL show router bgp neighbor advertisedroutes | match ? B:GDGZMSIPMANBRAS01XYAL show srrp 100088803 ===========================================================SRRP Instance 100088803===========================================================Description : (Not Specified)Admin State : Up Oper State : initializeOper 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 : : 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 deci。5. 恢復鏈路2,觀察業(yè)務情況6. 中斷鏈路3,觀察業(yè)務情況。enable 測試結果測試編號測試項目大“v”型專線業(yè)務熱備測試測試目的驗證專線業(yè)務備份功能,在鏈路中斷時,業(yè)務得到保護的情況測試環(huán)境測試步驟1. 在SW接終端分別ping網(wǎng)關和外網(wǎng)(百度)2. 中斷鏈路1,觀察業(yè)務情況。remotemepdetect70/20/0down2/2/27 設置cfm報文向外轉發(fā)cfm0/19/0down2/1/1enablecfmmaremotemepdetectma2 20/0端口mep id設為3,ID與對端保持一致。2/21 19/0端口mep id設為2,ID與對端保持一致cfm2/11705cfm2/21705cfm2/11s 創(chuàng)建MA索引號為2/2,String值為BHGWGCOLT001B,與對端DRJLSR的值一致,CC報文發(fā)送周期為1秒cfmXLDOLT001Bnameformatmaccintervalstring2/1cfmlevelstring20cfm17050port17051705 smartport GDGZMSIPMANXYBRAS017750全局配置configureservice opergroup XLDOLT001M create IES 10000888配置groupinterface的sap關聯(lián)ETHCFM聯(lián)動 configure service sdp 1243 mpls create description TO[GDGZMSIPMANXHBRAS017750]LOOPBACK0 farend ldp keepalive shutdown exit no shutdown exit configure service ies 1000888 customer 1000 create redundantinterface OAMSRRP create description OAMSRRPTest address spokesdp 1244:10000888 create no shutdown exit exit subscriberinterface OAMSRRPTest create address groupinterface XLDOLT001 create redundantinterface OAMSRRP sap lag4: create opergroup XLDOLT001M ethcfm mep 1 domain 2 association 5 direction down –定義本地mepid faultpropagationenable useiftlv ccmenable no shutdown exit exit exit sap lag4: create antispoof ip statichost ip create no shutdown exit exit srrp 100088803 create keepaliveinterval 50 messagepath lag4: priority 120 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ū)分。恢復鏈路1,觀察業(yè)務情況預期結果主用鏈路1出現(xiàn)故障,業(yè)務可以正常切換到備用側測試結果ping網(wǎng)關ping百度切換還原切換還原第1次3040第2次3060第3次2140ping外網(wǎng)由于涉及到主備SR用戶路由的發(fā)布切換,因為中斷時間會稍長備注主用側路由:B:GDGZMSIPMANBRAS01XYAL show router routetable ===========================================================Route Table (Router: Base)===========================================================Dest Prefix[Flags] Type Proto Age Pref Next Hop[Interface Name] Metric [XLDSW01SDHandPTN] 0No. of Routes: 1Flags: L = LFA nexthop available B = BGP backup route available n = Number of times nexthop is repeated備用側路由:A:GDGZMSIPMANSR01XHAL show router routetable ===========================