




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Implementing BGPUsing Route Maps to Manipulate Basic BGP PathsBGP is designed for manipulating routing paths.BGP Is Designed to Implement Policy RoutingChanging BGP Local Preference For All Routesbgp default local-preference valueRouter(config-router)#This command changes the default local preferenc
2、e value.All routes advertised to an IBGP neighbor have the local preference set to the value specified.Local preference is used in these ways:Within an AS between IBGP speakersTo determine the best path to exit theAS to reach an outside networkSet to 100 by default; higher values preferredWhat is th
3、e best path for router C to 65003, 65004, and 65005?Local Preference Case StudyRouter C BGP Table with Default SettingsRouterC# show ip bgpBGP table version is 7, local router ID is 3.3.3.3Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin code
4、s: i - IGP, e - EGP, ? - plete Network Next Hop Metric LocPrf Weight Path* i172.16.0.0 172.20.50.1 100 0 65005 65004 65003 i*i 192.168.28.1 100 0 65002 65003 i*i172.24.0.0 172.20.50.1 100 0 65005 i* i 192.168.28.1 100 0 65002 65003 65004 65005 i*i172.30.0.0 172.20.50.1 100 0 65005 65004 i* i 192.168
5、.28.1 100 0 65002 65003 65004iBy default, BGP selects the shortest AS path as the best () path.In AS 65001, the percentage of traffic going to 172.24.0.0 is 30%, 172.30.0.0 is 20%, and 172.16.0.0 is 10%.50% of all traffic will go to the next hop of 172.20.50.1 (AS 65005), and 10% of all traffic will
6、 go to the next hop of 192.168.28.1 (AS 65002).Make traffic to 172.30.0.0 select the next hop of 192.168.28.1 to achieve load sharing where both external links get approximately 30% of the load.Route Map for Router Arouter bgp 65001 neighbor 2.2.2.2 remote-as 65001neighbor 3.3.3.3 remote-as 65001nei
7、ghbor 2.2.2.2 remote-as 65001 update-source loopback0neighbor 3.3.3.3 remote-as 65001 update-source loopback0neighbor 192.168.28.1 remote-as 65002neighbor 192.168.28.1 route-map local_pref in!access-list 65 permit 172.30.0.0 0.0.255.255!route-map local_pref permit 10match ip address 65set local-pref
8、erence 400!route-map local_pref permit 20Router A configurationRouter C BGP Table with Local Preference LearnedRouterC# show ip bgpBGP table version is 7, local router ID is 3.3.3.3Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - I
9、GP, e - EGP, ? - plete Network Next Hop Metric LocPrf Weight Path* i172.16.0.0 172.20.50.1 100 0 65005 65004 65003 i*i 192.168.28.1 100 0 65002 65003 i*i172.24.0.0 172.20.50.1 100 0 65005 i* i 192.168.28.1 100 0 65002 65003 65004 65005 i* i172.30.0.0 172.20.50.1 100 0 65005 65004 i*i 192.168.28.1 40
10、0 0 65002 65003 65004iBest () paths for networks 172.16.0.0/16 and 172.24.0.0/16 have not changed.Best () path for network 172.30.0.0 has changed to a new next hop of 192.168.28.1 because the next hop of 192.168.28.1 has a higher local preference, 400.In AS 65001, the percentage of traffic going to
11、172.24.0.0 is 30%, 172.30.0.0 is 20%, and 172.16.0.0 is 10%.30% of all traffic will go to the next hop of 172.20.50.1 (AS 65005), and 30% of all traffic will go tothe next hop of 192.168.28.1 (AS 65002).Changing BGP MED for All Routesdefault-metric numberRouter(config-router)#MED is considered the m
12、etric of BGP.All routes that are advertised to an EBGP neighbor are set to the value specified using this command.MED is used when multiple paths exist between two autonomous systems.A lower MED value is preferred. The default setting for Cisco is MED = 0.The metric is an optional, nontransitive att
13、ribute. Usually, MED is shared only between two autonomous systems that have multiple EBGP connections with each other.BGP Using Route Maps and the MEDRoute Map for Router ARouter As Configuration:router bgp 65001 neighbor 2.2.2.2 remote-as 65001neighbor 3.3.3.3 remote-as 65001neighbor 2.2.2.2 updat
14、e-source loopback0neighbor 3.3.3.3 update-source loopback0neighbor 192.168.28.1 remote-as 65004neighbor 192.168.28.1 route-map med_65004 out!access-list 66 permit 192.168.25.0.0 0.0.0.255access-list 66 permit 192.168.26.0.0 0.0.0.255 !route-map med_65004 permit 10match ip address 66set metric 100!ro
15、ute-map med_65004 permit 100set metric 200Route Map for Router BRouter Bs Configuration:router bgp 65001neighbor 1.1.1.1 remote-as 65001neighbor 3.3.3.3 remote-as 65001neighbor 1.1.1.1 update-source loopback0neighbor 3.3.3.3 update-source loopback0neighbor 172.20.50.1 remote-as 65004neighbor 172.20.
16、50.1 route-map med_65004 out!access-list 66 permit 192.168.24.0.0 0.0.0.255!route-map med_65004 permit 10match ip address 66set metric 100!route-map med_65004 permit 100set metric 200MED Learned by Router ZRouterZ# show ip bgpBGP table version is 7, local router ID is 122.30.1.1Status codes: s suppr
17、essed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - plete Network Next Hop Metric LocPrf Weight Path*i192.168.24.0 172.20.50.2 100 100 0 65001 i* i 192.168.28.2 200 100 0 65001 i* i192.168.25.0 172.20.50.2 200 100 0 65001 i*i 192.168.28.
18、2 100 100 0 65001 i* i192.168.26.0 172.20.50.2 200 100 0 65001 i*i 192.168.28.2 100 100 0 65001 iExamine the networks that have been learned from AS 65001 on Router Z in AS 65004.For all networks: Weight is equal (0); local preference is equal (100); routes are not originated in this AS; AS path is
19、equal (65001); origin code is equal (i).192.168.24.0 has a lower metric (MED) through 172.20.50.2 (100) than 192.168.28.2 (200).192.168.25.0 has a lower metric (MED) through 192.168.28.2 (100) than 172.20.50.2 (200).192.168.26.0 has a lower metric (MED) through 192.168.28.2 (100) than 172.20.50.2 (200).BGP in an EnterpriseSummaryThe BGP local preference attribute can be changed to manipulate the best-path decision proc
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 家居空間設(shè)計(jì)中的生活動(dòng)線優(yōu)化考核試卷
- 流動(dòng)小吃轉(zhuǎn)讓合同范本
- 酒店吧臺(tái)員工合同范本
- 吊頂合資協(xié)議合同范本
- 辦公區(qū)域清潔與維護(hù)工作計(jì)劃
- 農(nóng)村污水處理合同
- 企業(yè)增資擴(kuò)股方案及協(xié)議
- 環(huán)境保護(hù)的重要性征文
- 貨物公路運(yùn)輸合同
- 私人公寓樓房產(chǎn)轉(zhuǎn)讓合同
- 口腔頜面部感染患者的營養(yǎng)狀況及輔助營養(yǎng)治療策略
- 以工代賑政策培訓(xùn)課件
- 《中華民族大團(tuán)結(jié)》一流教學(xué)計(jì)劃(全版)
- 垃圾分類校本教材
- 虛擬現(xiàn)實(shí)技術(shù)中的智能感知與識(shí)別技術(shù)應(yīng)用
- DD 2014-11 地面沉降干涉雷達(dá)數(shù)據(jù)處理技術(shù)規(guī)程
- 咖啡與茶文化培訓(xùn)1
- 一+《展示國家工程++了解工匠貢獻(xiàn)》(教學(xué)課件)-【中職專用】高二語文精講課堂(高教版2023·職業(yè)模塊)
- DIY服裝營銷計(jì)劃書
- 全國教育科學(xué)規(guī)劃課題申報(bào)書:71.《教師在教育數(shù)字化轉(zhuǎn)型中的作用及其實(shí)現(xiàn)路徑研究》
- 輸電線路組成(金具、絕緣)
評(píng)論
0/150
提交評(píng)論