資源描述:
《【CCNP】路由操縱工具PBR(策略路由)配置案例》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、[CCNP]路由操縱工具PBR(策略路由)配置案例版本V1.0密級同開放□內(nèi)部□機(jī)密類型□討論版□測試版回正式版修訂記錄修訂日期修訂人版本號審臥修訂說明2012-12-20Jeff1.0Jeff正式發(fā)布1案例配置拓?fù)?案例配置需求1、如上圖所示,IP地址規(guī)劃方面,路由器互連的接口為172.8.AB.X/24(其中AB為路由器編號疊加,X為路由器編號,如R1連接R2的接口F0/0的地址為172.8.12.1/24)2、如圖所示,所有的路由器運行OSPF100,R2上配置策略路由PBR,使得R1發(fā)出的目的地址為7.77.7的數(shù)據(jù)包下一跳為
2、172.8.23.3,R4發(fā)出的大小在3到200字節(jié)之間數(shù)據(jù)包從出口F3/0發(fā)出;3案例配置思路1、R1上的關(guān)鍵配置:routerospf100router-id1.1.1.1log-adjacency?changesnetwork172.8.12.10.0.0.0area02、R2上的關(guān)鍵配置:routerospf100router-id2.2.22log-adjacency?changesnetwork172.8.12.20.0.0.0area0network172.8.23.20.0.0.0area0network172.8.2
3、4.20.0.0.0area0network172.8.25.20.0.0.0area0i■access-list100permitipanyhost77.7.7i■route-mapRltoR6permit10matchipaddress100setipnext-hop172.8.23.3Iroute-mapR4toANYpermit10matchlength3200setinterfaceFastEthernet3/0i■interfaceFastEthernetO/Oipaddress172.8.12.2255.255.255.
4、0ippolicyroute-mapRltoR6/F0/0接口上應(yīng)用PBR/duplexautospeedautoi■interfaceFastEthernet2/0ipaddress172.8.24.2255.255.255.0ippolicyroute-mapR4toANY/F2/0接口上應(yīng)用PBR/duplexautospeedauto3、R3上的關(guān)鍵配置:routerospf100router-id33.3.3log-adjacency-changesnetwork172.8.23.30.0.0.0area0network17
5、2.8.36.30.0.0.0area04、R4上的關(guān)鍵配置:routerospf100router-id4.4.4.4log-adjacency-changesnetwork172.8.24.40.0.0.0area05、R5上的關(guān)鍵配置:routerospf100router-id5.5.5.5log?adjacency?changesnetwork172.8.25.50.0.0.0area0network172.8.56.50.0.0.0area06、R6上的關(guān)鍵配置:routerospf100router-id77.7.7lo
6、g-adjacency-changesnetwork77.7.70.0.0.0area0network172.8.36.60.0.0.0area0network172.8.56.60.0.0.0area04案例檢驗結(jié)果1、R1上發(fā)送數(shù)據(jù)包到7.77.7,R2上PBR的效果:Rl#ping7.7.77Typeescapesequeneetoabort.Sending5,100七yteICMPEchosto7.77.7,timeoutis2seconds:!!!!!Successrateis100percent(5/5),round-tr
7、ipmin/avg/max=72/101/152msRl#R2#showiprouteCodes:C-connected,S-static,R-RIBM-mobile,B-BGPD?EIGRREX?EIGRPexternalO?OSPF,IA?OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2El?OSPFexternaltype1,E2-OSPFexternaltype2i-IS-IS,su-IS-ISsummary,LI-IS-ISlevel-1,L2-IS
8、-ISlevel-2ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticrouteo?ODR,P?periodicdownloadedstaticrouteGatew