BGP協(xié)議上機指導書_第1頁
BGP協(xié)議上機指導書_第2頁
BGP協(xié)議上機指導書_第3頁
BGP協(xié)議上機指導書_第4頁
BGP協(xié)議上機指導書_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

DL010011 BGP協(xié)議上機指導書 ISSUE1.2DL010011 BGP協(xié)議上機指導書 ISSUE1.2目 錄課程說明目 錄課程說明1實驗說明1版本說明1實驗目的1實驗任務1相關資料1第1章 BGP協(xié)議基本配置21.1 組網(wǎng)及業(yè)務介紹21.2 命令行列表21.3 配置流程圖31.4 配置步驟31.5 結果驗證41.6 配置參考9第2章 BGP路由聚合122.1 組網(wǎng)及業(yè)務介紹122.2 命令行列表122.3 配置流程圖122.4 配置步驟132.5 結果驗證132.6 附加任務192.7 配置參考20第3章 BGP路由反射器233.1 組網(wǎng)及業(yè)務介紹233.2 命令行列表233.3 配置流程圖233.4 配置步驟243.5 結果驗證243.6 配置參考26第4章 BGP聯(lián)盟294.1 組網(wǎng)及業(yè)務介紹294.2 命令行列表294.3 配置流程圖304.4 配置步驟304.5 結果驗證304.6 配置參考31第5章 BGP路徑選擇345.1 組網(wǎng)及業(yè)務介紹345.2 命令行列表345.3 配置流程圖355.4 配置步驟355.5 結果驗證355.6 配置參考39i華為技術有限公司 版權所有, 未經(jīng)許可不得擴散DL010011 BGP協(xié)議上機指導書 ISSUE1.2BGP路徑選擇課程說明實驗說明本實驗指導書本主要介紹了BGP協(xié)議的基本配置方法及配置流程,涵蓋了BGP協(xié)議當前的主要技術,相信您能通過本指導書了解對BGP協(xié)議的配置方法及配置流程。版本說明本指導書適用于VRP Version 3.40, Release 0201P01與VRP版本5.10,RELEASE 0039實驗目的l 了解BGP協(xié)議的基本原理l 掌握BGP協(xié)議的配置流程l 熟悉BGP協(xié)議的配置命令實驗任務l BGP協(xié)議基本配置l BGP路由聚合相關資料l VRP3.40操作手冊l VRP5.10操作手冊第1章 BGP協(xié)議基本配置1.1 組網(wǎng)及業(yè)務介紹圖1-1 BGP協(xié)議上機組網(wǎng)圖RTD能夠學習到RTA的17.1.1.1/32和RTB的18.1.1.1的路由信息。1.2 命令行列表表1-1 BGP協(xié)議上機命令行操作命令啟動BGP,進入BGP視圖bgp as-number關閉BGPundo bgp as-number 創(chuàng)建一個對等體組group group-name internal | external 刪除指定的對等體組undo group group-name為EBGP對等體組指定自治系統(tǒng)號peer group-name as-number as-number刪除指定EBGP對等體組的自治系統(tǒng)號undo peer group-name as-number向對等體組中加入一個對等體peer peer-address group group-name as-number as-number 從對等體組中刪除一個對等體undo peer peer-address指定路由更新報文的源接口peer peer-address connect-interface LoopBack 取消指定路由更新報文的源接口undo peer peer-address connect-interface LoopBack1.3 配置流程圖配置接口使能BGP配置對等體組向對等體組中加入對等體配置對等體引入路由圖1-3 BGP協(xié)議配置流程圖1.4 配置步驟(1) 配置接口在RTA、RTB、RTC和RTD上分別配置環(huán)回地址和相應的物理接口地址。 (詳見圖1-1)(2) 使能BGP。RTA、RTB、RTC、RTD分別開啟BGP,RTB和RTC在同一自治系統(tǒng)中。(3) 配置對等體組在RTA、RTD上配置EBGP對等體組、RTB、RTC上配置EBGP和IBGP。(4) 配置對等體在RTA、RTB、RTC和RTD上分別配置相應的對等體,加入相應的對等體組。(5) 引入路由把IGP路由引入到BGP中。1.5 結果驗證(1) RTA上的鄰居狀態(tài)和路由信息display bgp peer Peer AS-num Ver Queued-Tx Msg-Rx Msg-Tx Up/Down State-10.1.1.2 200 4 0 40 28 00:24:12 Establisheddisplay bgp routingFlags: # - valid - active I - internal D - damped H - history S - aggregate suppressed Dest/Mask Next-Hop Med Local-pref Origin Path -# 1.1.1.1/32 0.0.0.0 0 100 INC # 2.2.2.2/32 10.1.1.2 0 0 INC 200# 3.3.3.3/32 10.1.1.2 20 0 INC 200# 4.4.4.4/32 10.1.1.2 0 0 INC 200 300# 10.1.1.0/30 0.0.0.0 0 100 INC # 10.1.1.2 0 0 INC 200# 10.2.2.0/30 10.1.1.2 0 0 INC 200# 17.1.1.1/32 0.0.0.0 0 100 INC # 18.1.1.1/32 10.1.1.2 0 0 INC 200# 19.1.1.1/32 10.1.1.2 20 0 INC 200# 20.1.1.1/32 10.1.1.2 0 0 INC 200 300# 192.2.2.0/30 10.1.1.2 0 0 INC 200 Routes total: 12 display ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface1.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack02.2.2.2/32 BGP 256 0 10.1.1.2 Ethernet0/13.3.3.3/32 BGP 256 20 10.1.1.2 Ethernet0/14.4.4.4/32 BGP 256 0 10.1.1.2 Ethernet0/110.1.1.0/30 DIRECT 0 0 10.1.1.1 Ethernet0/110.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack010.2.2.0/30 BGP 256 0 10.1.1.2 Ethernet0/117.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack018.1.1.1/32 BGP 256 0 10.1.1.2 Ethernet0/119.1.1.1/32 BGP 256 20 10.1.1.2 Ethernet0/120.1.1.1/32 BGP 256 0 10.1.1.2 Ethernet0/1127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.2.2.0/30 BGP 256 0 10.1.1.2 Ethernet0/1(2) RTB上的鄰居狀態(tài)和路由信息display bgp peer Peer AS-num Ver Queued-Tx Msg-Rx Msg-Tx Up/Down State-10.1.1.1 100 4 0 26 41 00:24:38 Established3.3.3.3 200 4 0 36 37 00:24:34 Establisheddisplay bgp routingFlags: # - valid - active I - internal D - damped H - history S - aggregate suppressed Dest/Mask Next-Hop Med Local-pref Origin Path -# 1.1.1.1/32 10.1.1.1 0 0 INC 100# 2.2.2.2/32 0.0.0.0 0 100 INC # I 3.3.3.3 20 100 INC # 3.3.3.3/32 0.0.0.0 20 100 INC I 3.3.3.3 0 100 INC #I 4.4.4.4/32 10.2.2.2 0 100 INC 300# 10.1.1.0/30 0.0.0.0 0 100 INC # 10.1.1.1 0 0 INC 100#I 10.2.2.0/30 3.3.3.3 0 100 INC # 17.1.1.1/32 10.1.1.1 0 0 INC 100# 18.1.1.1/32 0.0.0.0 0 100 INC # I 3.3.3.3 20 100 INC # 19.1.1.1/32 0.0.0.0 20 100 INC # I 3.3.3.3 0 100 INC #I 20.1.1.1/32 10.2.2.2 0 100 INC 300# 192.2.2.0/30 0.0.0.0 0 100 INC # I 3.3.3.3 0 100 INC display ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface1.1.1.1/32 BGP 256 0 10.1.1.1 Ethernet0/12.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack03.3.3.3/32 IS-IS 15 20 192.2.2.2 Ethernet0/04.4.4.4/32 BGP 256 0 10.2.2.2 Ethernet0/010.1.1.0/30 DIRECT 0 0 10.1.1.2 Ethernet0/110.1.1.2/32 DIRECT 0 0 127.0.0.1 InLoopBack010.2.2.0/30 BGP 256 0 3.3.3.3 Ethernet0/017.1.1.1/32 BGP 256 0 10.1.1.1 Ethernet0/118.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack019.1.1.1/32 IS-IS 15 20 192.2.2.2 Ethernet0/020.1.1.1/32 BGP 256 0 10.2.2.2 Ethernet0/0127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.2.2.0/30 DIRECT 0 0 192.2.2.1 Ethernet0/0192.2.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0 (3) RTC上的鄰居狀態(tài)和路由信息display bgp peer Peer AS-num Ver Queued-Tx Msg-Rx Msg-Tx Up/Down State-10.2.2.2 300 4 0 4 8 00:02:11 Established2.2.2.2 200 4 0 36 38 00:24:48 Establisheddisplay bgp routingFlags: # - valid - active I - internal D - damped H - history S - aggregate suppressed Dest/Mask Next-Hop Med Local-pref Origin Path -#I 1.1.1.1/32 10.1.1.1 0 100 INC 100# 2.2.2.2/32 0.0.0.0 20 100 INC I 2.2.2.2 0 100 INC # 3.3.3.3/32 0.0.0.0 0 100 INC # I 2.2.2.2 20 100 INC # 4.4.4.4/32 10.2.2.2 0 0 INC 300#I 10.1.1.0/30 2.2.2.2 0 100 INC # 10.2.2.0/30 0.0.0.0 0 100 INC # 10.2.2.2 0 0 INC 300#I 17.1.1.1/32 10.1.1.1 0 100 INC 100# 18.1.1.1/32 0.0.0.0 20 100 INC # I 2.2.2.2 0 100 INC # 19.1.1.1/32 0.0.0.0 0 100 INC # I 2.2.2.2 20 100 INC # 20.1.1.1/32 10.2.2.2 0 0 INC 300# 192.2.2.0/30 0.0.0.0 0 100 INC # I 2.2.2.2 0 100 INC display ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface1.1.1.1/32 BGP 256 0 10.1.1.1 Ethernet0/02.2.2.2/32 IS-IS 15 20 192.2.2.1 Ethernet0/03.3.3.3/32 DIRECT 0 0 127.0.0.1 InLoopBack04.4.4.4/32 BGP 256 0 10.2.2.2 Ethernet0/110.1.1.0/30 BGP 256 0 2.2.2.2 Ethernet0/010.2.2.0/30 DIRECT 0 0 10.2.2.1 Ethernet0/110.2.2.1/32 DIRECT 0 0 127.0.0.1 InLoopBack017.1.1.1/32 BGP 256 0 10.1.1.1 Ethernet0/018.1.1.1/32 IS-IS 15 20 192.2.2.1 Ethernet0/019.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack020.1.1.1/32 BGP 256 0 10.2.2.2 Ethernet0/1127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.2.2.0/30 DIRECT 0 0 192.2.2.2 Ethernet0/0192.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack0(4) RTD上的鄰居狀態(tài)和路由信息display bgp peer Peer AS-num Ver Queued-Tx Msg-Rx Msg-Tx Up/Down State-10.2.2.1 200 4 0 6 5 00:02:25 Establisheddisplay bgp routingFlags: # - valid - active I - internal D - damped H - history S - aggregate suppressed Dest/Mask Next-Hop Med Local-pref Origin Path -# 1.1.1.1/32 10.2.2.1 0 0 INC 200 100# 2.2.2.2/32 10.2.2.1 20 0 INC 200# 3.3.3.3/32 10.2.2.1 0 0 INC 200# 4.4.4.4/32 0.0.0.0 0 100 INC # 10.1.1.0/30 10.2.2.1 0 0 INC 200# 10.2.2.0/30 0.0.0.0 0 100 INC # 10.2.2.1 0 0 INC 200# 17.1.1.1/32 10.2.2.1 0 0 INC 200 100# 18.1.1.1/32 10.2.2.1 20 0 INC 200# 19.1.1.1/32 10.2.2.1 0 0 INC 200# 20.1.1.1/32 0.0.0.0 0 100 INC # 192.2.2.0/30 10.2.2.1 0 0 INC 200 Routes total: 12 display ip routing-table Routing Table: public netDestination/Mask Protocol Pre Cost Nexthop Interface1.1.1.1/32 BGP 256 0 10.2.2.1 Ethernet0/12.2.2.2/32 BGP 256 20 10.2.2.1 Ethernet0/13.3.3.3/32 BGP 256 0 10.2.2.1 Ethernet0/14.4.4.4/32 DIRECT 0 0 127.0.0.1 InLoopBack010.1.1.0/30 BGP 256 0 10.2.2.1 Ethernet0/110.2.2.0/30 DIRECT 0 0 10.2.2.2 Ethernet0/110.2.2.2/32 DIRECT 0 0 127.0.0.1 InLoopBack017.1.1.1/32 BGP 256 0 10.2.2.1 Ethernet0/118.1.1.1/32 BGP 256 20 10.2.2.1 Ethernet0/119.1.1.1/32 BGP 256 0 10.2.2.1 Ethernet0/120.1.1.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.0/8 DIRECT 0 0 127.0.0.1 InLoopBack0127.0.0.1/32 DIRECT 0 0 127.0.0.1 InLoopBack0192.2.2.0/30 BGP 256 0 10.2.2.1 Ethernet0/1(5) 各業(yè)務網(wǎng)段之間可以互訪ping 18.1.1.1 PING 18.1.1.1: 56 data bytes, press CTRL_C to break Reply from 18.1.1.1: bytes=56 Sequence=1 ttl=255 time=3 ms Reply from 18.1.1.1: bytes=56 Sequence=2 ttl=255 time=2 ms Reply from 18.1.1.1: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 18.1.1.1: bytes=56 Sequence=4 ttl=255 time=2 ms Reply from 18.1.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms - 18.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/2/3 msping 19.1.1.1 PING 19.1.1.1: 56 data bytes, press CTRL_C to break Reply from 19.1.1.1: bytes=56 Sequence=1 ttl=254 time=3 ms Reply from 19.1.1.1: bytes=56 Sequence=2 ttl=254 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=3 ttl=254 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=4 ttl=254 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=5 ttl=254 time=2 ms - 19.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/3 msping 20.1.1.1 PING 20.1.1.1: 56 data bytes, press CTRL_C to break Reply from 20.1.1.1: bytes=56 Sequence=1 ttl=253 time=3 ms Reply from 20.1.1.1: bytes=56 Sequence=2 ttl=253 time=2 ms Reply from 20.1.1.1: bytes=56 Sequence=3 ttl=253 time=3 ms Reply from 20.1.1.1: bytes=56 Sequence=4 ttl=253 time=3 ms Reply from 20.1.1.1: bytes=56 Sequence=5 ttl=253 time=3 ms - 20.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/3 msping 17.1.1.1 PING 17.1.1.1: 56 data bytes, press CTRL_C to break Reply from 17.1.1.1: bytes=56 Sequence=1 ttl=253 time=2 ms Reply from 17.1.1.1: bytes=56 Sequence=2 ttl=253 time=3 ms Reply from 17.1.1.1: bytes=56 Sequence=3 ttl=253 time=3 ms Reply from 17.1.1.1: bytes=56 Sequence=4 ttl=253 time=3 ms Reply from 17.1.1.1: bytes=56 Sequence=5 ttl=253 time=3 ms - 17.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/3 msping 18.1.1.1 PING 18.1.1.1: 56 data bytes, press CTRL_C to break Reply from 18.1.1.1: bytes=56 Sequence=1 ttl=254 time=3 ms Reply from 18.1.1.1: bytes=56 Sequence=2 ttl=254 time=2 ms Reply from 18.1.1.1: bytes=56 Sequence=3 ttl=254 time=2 ms Reply from 18.1.1.1: bytes=56 Sequence=4 ttl=254 time=2 ms Reply from 18.1.1.1: bytes=56 Sequence=5 ttl=254 time=2 ms - 18.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/3 msping 19.1.1.1 PING 19.1.1.1: 56 data bytes, press CTRL_C to break Reply from 19.1.1.1: bytes=56 Sequence=1 ttl=255 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=2 ttl=255 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=3 ttl=255 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=4 ttl=255 time=2 ms Reply from 19.1.1.1: bytes=56 Sequence=5 ttl=255 time=2 ms - 19.1.1.1 ping statistics - 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 2/2/2 ms1.6 配置參考1. RTA配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname RTARTAinterface Ethernet0/1RTA-Ethernet0/1ip address 10.1.1.1 255.255.255.252RTA-Ethernet0/1quitRTAinterface LoopBack0RTA-LoopBack0ip address 1.1.1.1 255.255.255.255RTA-LoopBack0quitRTAinterface LoopBack1RTA-LoopBack1ip address 17.1.1.1 255.255.255.255RTA-LoopBack1quitRTAbgp 100RTA-bgpimport-route directRTA-bgpgroup CarrierB externalRTA-bgppeer 10.1.1.2 group CarrierB as-number 200RTA-bgpreturn2. RTB配置system-viewSystem View: return to User View with Ctrl+Z.Quidwaysysname RTBRTBisisRTB-isisnetwork-entity 49.0001.0020.0200.2002.00RTB-isisis-level Level-2RTB-isisquitRTBinterface Ethernet0/0RTB-Ethernet0/0ip address 192.2.2.1 255.255.255.252RTB-Ethernet0/0isis enableRTB-Ethernet0/0quitRTBinterface Ethernet0/1RTB-Ethernet0/1ip address 10.1.1.2 255.255.255.252RTB-Ethernet0/1quitRTBinterface LoopBack0RTB-LoopBack0ip address 2.2.2.2 255.255.255.255RTB-LoopBack0isis enableRTB-LoopBack0quitRTBinterface LoopBack1RTB-LoopBack1ip address 18.1.1.1 255.255.255.255RTB-LoopBack1isis enableRTB-LoopBack1quitRTBbgp 200RTB-bgpimport-route isis RTB-bgpimport-route directRTB-bgpgroup CarrierA externalRTB-bgppeer 10.1.1.1 group Carrier

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論