資源描述:
《bgp本地優(yōu)先屬性詳解配置》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在教育資源-天天文庫。
1、Local-pre屬性(默認(rèn)100)?BGP路由器通過不同的IBGP得到達(dá)到目的地址的多條路徑,通過Local-pre屬性的調(diào)整控制流量方向。(環(huán)路可能產(chǎn)生AS—Path可避免)全局調(diào)整—調(diào)整全部經(jīng)過的流量Defaultlocal-preference200(BGP進(jìn)程中)局部調(diào)整—調(diào)整特定的流量?拓?fù)洌???實(shí)驗(yàn)?zāi)康模壕植空{(diào)整,r1到192.168.1.100的路由路徑的改變.?配置:r1dis?current-configuration?#sysname?r1#interface?Serial0/0/1
2、?link-protocol?ppp?undo?shutdown?ip?address?202.1.1.1?255.255.255.252#interface?Serial0/0/2?link-protocol?ppp?undo?shutdown?ip?address?202.1.1.5?255.255.255.252#interface?LoopBack0?ip?address?1.1.1.1?255.255.255.255#interface?LoopBack100#bgp?100?router-id?1.1.
3、1.1?peer?2.2.2.2?as-number?100?peer?2.2.2.2?connect-interface?LoopBack0?peer?3.3.3.3?as-number?100?peer?3.3.3.3?connect-interface?LoopBack0?#?ipv4-family?unicast??undo?synchronization??import-route?ospf?1??peer?2.2.2.2?enable??peer?2.2.2.2?route-policy?loca-pr
4、e?import??peer?3.3.3.3?enable#ospf?1?import-route?bgp?area?0.0.0.0??network?1.1.1.1?0.0.0.0??network?202.1.1.0?0.0.0.3??network?202.1.1.4?0.0.0.3#route-policy?loca-pre?permit?node?10?if-match?ip-prefix?loca-pre?apply?local-preference?200#route-policy?loca-pre?
5、permit?node?20#ip?ip-prefix?loca-pre?index?10?permit?192.168.1.100?32#user-interface?con?0user-interface?vty?0?4user-interface?vty?16?20#?r2dis?current-configuration?#sysname?r2#interface?Serial0/0/0?link-protocol?ppp?undo?shutdown?ip?address?202.1.1.9?255
6、.255.255.252#interface?Serial0/0/1?link-protocol?ppp?undo?shutdown?ip?address?202.1.1.2?255.255.255.252#interface?LoopBack0?ip?address?2.2.2.2?255.255.255.255#interface?LoopBack100#bgp?100?peer?1.1.1.1?as-number?100?peer?1.1.1.1?connect-interface?LoopBack0?pee
7、r?3.3.3.3?as-number?100?peer?3.3.3.3?connect-interface?LoopBack0?#?ipv4-family?unicast??undo?synchronization??import-route?ospf?1??peer?1.1.1.1?enable??peer?3.3.3.3?enable#ospf?1?import-route?bgp?area?0.0.0.0??network?2.2.2.2?0.0.0.0??network?202.1.1.0?0.0.0.3
8、??network?202.1.1.8?0.0.0.3??network?192.168.1.1?0.0.0.0??network?192.168.1.100?0.0.0.0#??r3dis?current-configuration#sysname?r3#interface?Serial0/0/0?link-protocol?ppp?und