資源描述:
《bgp本地優(yōu)先屬性詳解配置》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、Local-pre屬性(默認(rèn)100)BGP路由器通過(guò)不同的IBGP得到達(dá)到目的地址的多條路徑,通過(guò)Local-pre屬性的調(diào)整控制流量方向。(環(huán)路可能產(chǎn)生AS-Path可避免)全局調(diào)整一調(diào)整全部經(jīng)過(guò)的流量Defaultlocal-prcfcrcnce200(BGP進(jìn)程中)局部調(diào)整一調(diào)整特定的流量拓?fù)洌簩?shí)驗(yàn)?zāi)康模壕植空{(diào)整,tl到192.16&1.100的路由路徑的改變.配置:rldiscurrent-configuration#sysnamerl#interfaceSerial0/0/1link-protocolpppundoshutdownipaddress202.1.1.
2、1255.255.255.252#interfaceSerial0/0/2link-protocolpppundoshutdownipaddress202.1.1.5255.255.255.252interfaceLoopBackOipaddress1.1.1.1255.255.255.255interfaceLoopBacklOObgp100router-id1.1.L1peer2.2.2.2as-number100peer2.2.2.2connect-interfaceLoopBackOpeer3.3.3.3as-number100peer3.3.3.3connect-inte
3、rfaceLoopBackOipv4-familyunicastundosynchronizationimport-routepeer2.2.2.2ospf1enablepeer2.2.2.2route-policyloca-preimportpeer#3.3.3.3enableospf1import-routebgproute-poIicyloca-prepermitipip-prefix1oca-preindexuser-interfacecon0user-interfacevty04user-interfacevty1620node2010permit192.168.1.10
4、032r2area0.0.0.0network1.1?1.1(D.0.0.0network202.1.1.00.0.0.3network202.1.1.40.0.0.3route-policyloca-prepermitnode10if-matchiLp-prefixloca-preapplylocal-preference200discurrent-configurationsysnamer2interfaceSerialO/O/Olink-protocolpppundoshutdownipaddress202.1.1.9255.255.255.252interfaceS
5、erial0/0/1link-protocolpppundoshutdownipaddress202.1.1.2255.255.255.252interfaceLoopBackOipaddress2.2.2.2255.255.255.255interfaceLoopBacklOObgp100peer1.1.1.1as-number100peer1.1.1.1conncct-interfaceLoopBackOpeer3.3.3.3as-number100peer3.3.3.3connect-interfaceLoopBackOipvd-familyunicastundosynchr
6、onizationimport-routeospf1peer1.1.1.1enablepeer3.3.3.3enabIeospf1import-routebgparea0.0.0.0network2.2.2.20.0.0.0network202.1.1.00.0.0.3network202.1.1.80.0.0.3network192.168.1.10.0.0.0network192.168.1.1000.0.0.0r3discurrent-configurationsysnamer3#interfaceSerialO/O/Olink-protocolpppundo
7、shutdownipaddress202.1.1.10255.255.255.252interfaceSerial0/0/2link-protocolpppundoshutdownipaddress202.1.1.6255.255.255.252interfaceLoopBackOipaddress3.3.3.3255.255.255.255interfaceLoopBacklOOipaddress192.168.1.100255.255.255.255bgp100r