




下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、BGP實驗之操縱BGP路徑選擇 local preference屬性案例(配圖+詳細驗證過程) 作者:JACKSON參考:CISCO中文社區 感謝JACKSON支持原創本地優先級(local pref)屬性是分配給路由的一種優先級度量,用于和到同一目的地的其 他路由相比較。這是BGP路由處理中的第二優先屬性(WEIGHT是第一優先屬性)。Local Pref 屬性只在本AS內部有效,不會被傳送到EBGP鄰居上。本地優先級越高,路由優先級越高。以上案例中,我們通過對R3的配置,設置從R1學到的1.0.0.0的本地優先級(Localpref) 設置為200,由于缺省的值為100,AS200中所有的
2、路由器都會選擇R3到達1.0.0.0。/ r1 /int f2/0ip ad 192.1.1.1 255.255.255.0int f3/0ip ad 193.1.1.1 255.255.255.0 int lo0int lo1ip ad 2.2.2.2 255.255.255.0router bgp 100no synneighbor 192.1.1.2 remote-as 200neighbor 193.1.1.3 remote-as 200network 1.0.0.0network 1.0.0.0/ r2 /int f2/0ip ad 192.1.1.2 255.255.255.0in
3、t f4/0ip ad 194.1.1.2 255.255.255.0router os 1netw 0.0.0.0 255.255.255.255 a 0passive-interface f2/0router bgp 200no synneighbor 192.1.1.1 remote-as 100neighbor 194.1.1.4 remote-as 200neighbor 195.1.1.3 remote-as 200neighbor 194.1.1.4 next-hop-self/ r3 /int f3/0ip ad 193.1.1.3 255.255.255.0int f5/0i
4、p ad 195.1.1.3 255.255.255.0router os 1netw 0.0.0.0 255.255.255.255 a 0passive-interface f3/0router bgp 200no synneighbor 193.1.1.1 remote-as 100neighbor 195.1.1.4 remote-as 200neighbor 195.1.1.4 next-hop-selfneighbor 194.1.1.2 remote-as 200neighbor 193.1.1.1 route-map localpref inaccess-list 1 perm
5、it 1.0.0.0 0.255.255.255route-map localpref permit 10match ip ad 1set local-pref 200route-map localpref permit 20set local-pref 100/ r4 /int f4/0ip ad 194.1.1.4 255.255.255.0int f5/0ip ad 195.1.1.4 255.255.255.0int lo0ip ad 4.4.4.4 255.255.255.0 router os 1router bgp 200no synneighbor 194.1.1.2 remo
6、te-as 200neighbor 195.1.1.3 remote-as 200netw 4.0.0.0驗證:/ r4 /r4#sh ip bgpNetwork Next Hop Metric LocPrf Weight Path*i1.0.0.0 195.1.1.3 0 200 0 100 i* i2.0.0.0 195.1.1.3 0 100 0 100 i*i 194.1.1.2 0 100 0 100 i* 4.0.0.0 0.0.0.0 0 32768 ir4#sh ip roB 1.0.0.0/8 200/0 via 195.1.1.3, 00:02:20B 2.0.0.0/8
7、200/0 via 194.1.1.2, 00:02:244.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback0O 193.1.1.0/24 110/128 via 195.1.1.3, 00:04:35, Serial5/0O 192.1.1.0/24 110/128 via 194.1.1.2, 00:04:35, Serial4/0C 195.1.1.0/24 is directly connected, Serial5/0C 194.1.1.0/24 is directly connect
8、ed, Serial4/0 r2#sh ip bgpNetwork Next Hop Metric LocPrf Weight Path *i1.0.0.0 193.1.1.1 0 200 0 100 i192.1.1.1 0 0 100 ii2.0.0.0 193.1.1.1 0 100 0 100 i* 192.1.1.1 0 0 100 i*i4.0.0.0 194.1.1.4 0 100 0 i r2#sh ip roB 1.0.0.0/8 200/0 via 193.1.1.1, 00:06:00B 2.0.0.0/8 20/0 via 192.1.1.1, 00:06:044.0.0.0/8 is variably subnetted, 2 subnets, 2 masksO 4.4.4.4/32 110/65 via 194.1.1.4, 00:08:20, Serial4/0B 4.0.0.0/8 200/0 via 194.1.1.4, 00:06:55O 193.1.1.0/24 110/192 via 194.1.1.4, 00:08:20, Serial4/0C 192.1.1.0/24
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 胃腸病的預防與治療
- 二零二五實習員工離職證明范例
- 二零二五參觀保密協議書
- 二零二五出國勞務擔保人合同書范例
- 決策支持系統在智能健康領域的挑戰與機遇
- 2025年高考生物常見答題陷阱收藏避雷
- 肺結核的藥物治療
- 區塊鏈在商業合同執行中的應用
- 區塊鏈技術在物聯網的未來發展與應用
- 小學教研組個人工作總結(28篇)
- 山西省城鎮教師支援農村教育工作登記表
- 軟件項目周報模板
- 著名中醫婦科 夏桂成教授補腎調周法
- VSM(價值流圖中文)課件
- 考古發掘中文物的采集與保存課件
- 人工氣道的護理劉亞課件
- 專業技術人員
- 拌和場安全檢查表
- 節日主題班會 《感恩母親節》教學課件
- 新加坡sm214th面經44緋的同學
- 全國第七屆中小學音樂優質課比賽教學設計跳圓舞曲的小貓
評論
0/150
提交評論