RSR-E系列BGP配置講解_第1頁
RSR-E系列BGP配置講解_第2頁
RSR-E系列BGP配置講解_第3頁
RSR-E系列BGP配置講解_第4頁
RSR-E系列BGP配置講解_第5頁
已閱讀5頁,還剩38頁未讀 繼續免費閱讀

下載本文檔

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

文檔簡介

1、RSR-ERSR-E系列系列BGPBGP配置講解配置講解技術培訓中心技術培訓中心修訂記錄修訂日期修訂版本修訂描述作者2009-10-15V1.0初稿完成。高志巖學習目標l掌握RSR-E系列BGP相關功能的配置思路l掌握RSR-E系列BGP相關功能配置BGP實驗拓撲圖R2R3R1R4AS1AS2IBGPEBGPEBGPIBGP10.0.0.0/811.0.0.0/851.0.0.0/8R5IBGP50.0.0.0/8RROSPFBGP配置任務lBGP基礎配置自治系統號、router-id配置IBGP Peer、EBGP Peer配置反射器配置lBGP選路配置將IGP路由引入BGP各種路由屬性的操

2、作課程內容l第一章第一章 RSR-E系列系列BGP基本配置基本配置l第二章 RSR-E系列BGP路由屬性操作6第一章 RSR-E系列BGP基本配置l自治系統號配置lRouter-id配置edit logical-routers r1gaozy# set routing-options autonomous-system 1edit logical-routers r1gaozy# set routing-options router-id 9.9.0.1 edit logical-routers r1gaozy# show routing-options router-id 9.9.0.1;

3、autonomous-system 1;第一章 RSR-E系列BGP基本配置lBGP Peer基本配置思路BGP Peer必須屬于一個Group設置Group的類型是internal還是external來決定屬于這個Group的BGP Peer是什么類型的關系將一個Peer地址加入進配置好的Group中第一章 RSR-E系列BGP基本配置lIBGP Peer相關配置edit logical-routers r2 protocols bgpgaozy# edit group IBGP_Peer edit logical-routers r2 protocols bgp group IBGP_Pe

4、ergaozy# set type internal edit logical-routers r2 protocols bgp group IBGP_Peergaozy# set neighbor 9.9.0.3 edit logical-routers r2 protocols bgp group IBGP_Peergaozy# set neighbor 9.9.0.4 edit logical-routers r2 protocols bgp group IBGP_Peergaozy# set local-address 9.9.0.2 edit logical-routers r2 p

5、rotocols bgp group IBGP_Peergaozy# exit edit logical-routers r2 protocols bgpgaozy# show group IBGP_Peer type internal; local-address 9.9.0.2; neighbor 9.9.0.3; neighbor 9.9.0.4;第一章 RSR-E系列BGP基本配置lEBGP Peer相關配置edit logical-routers r2 protocols bgpgaozy# edit group EBGP_Peer edit logical-routers r2 p

6、rotocols bgp group EBGP_Peergaozy# set neighbor 9.9.12.1 edit logical-routers r2 protocols bgp group EBGP_Peergaozy# set neighbor 9.9.12.1 peer-as 1 edit logical-routers r2 protocols bgp group EBGP_Peergaozy# exit edit logical-routers r2 protocols bgpgaozy# show group EBGP_Peer type external; neighb

7、or 9.9.12.1 peer-as 1; 第一章 RSR-E系列BGP基本配置l反射器配置edit logical-routers r4 protocols bgpgaozy# edit group IBGP_Peer edit logical-routers r4 protocols bgp group IBGP_Peergaozy# set cluster 9.9.0.4 edit logical-routers r4 protocols bgp group IBGP_Peergaozy# exit edit logical-routers r4 protocols bgpgaozy#

8、 show group IBGP_Peer type internal; local-address 9.9.0.4; cluster 9.9.0.4; neighbor 9.9.0.2; neighbor 9.9.0.3; neighbor 9.9.0.5;第一章 RSR-E系列BGP基本配置l查看BGP Peer狀態gaozy# run show bgp summary logical-router r4 Groups: 1 Peers: 3 Down peers: 1Table Tot Paths Act Paths Suppressed History Damp State Pendi

9、nginet.0 0 0 0 0 0 0Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Damped.9.9.0.2 2 270 273 0 0 2:01:30 0/0/0 0/0/09.9.0.3 2 268 271 0 0 2:01:26 0/0/0 0/0/09.9.0.5 2 54 52 0 8 2 Active課程內容l第一章 RSR-E系列BGP基本配置l第二章第二章 RSR-E系列系列BGP路由屬性操作路由屬性操作13第二章 RSR-E系列BGP路由屬性操作l傳統的BGP相關組件以cisco為例

10、Loc-RIBIP-RIBinput policy engineoutput policy engineAdj-RIB-inAdj-RIB-outUpdate from peerUpdate to peershow ip bgpbestnetworkredistributeshow ip bgp neighbor xx advertise-routeroute-map inprefix in inroute-map outprefix out out第二章 RSR-E系列BGP路由屬性操作lRSR-E系列的BGP相關組件Update from peerRoutingtableimport ex

11、portUpdate to peerimport policyexport policyshow route receive-protocol bgp neighbor show route advertising-protocol bgp neighbor 第二章 RSR-E系列BGP路由屬性操作lr5將直連路由通告給r4在BGP下配置export policy TO_R4edit logical-routers r5gaozy# edit protocols bgp edit logical-routers r5 protocols bgpgaozy# edit group IBGP_Pe

12、er edit logical-routers r5 protocols bgp group IBGP_Peergaozy# set export TO_R4 edit logical-routers r5 protocols bgp group IBGP_Peeredit logical-routers r5 protocols bgpgaozy# show group IBGP_Peer type internal; local-address 9.9.0.5; export TO_R4; neighbor 9.9.0.4;edit logical-routers r5 protocols

13、 bgp第二章 RSR-E系列BGP路由屬性操作lr5將直連路由通告給r4在policy-option下面配置policy TO_R4edit logical-routers r5gaozy# edit policy-options edit logical-routers r5 policy-optionsgaozy# edit policy-statement TO_R4 edit logical-routers r5 policy-options policy-statement TO_R4gaozy# set term 1 from protocol direct interface

14、em5.50 edit logical-routers r5 policy-options policy-statement TO_R4gaozy# set term 1 then community set comm50 edit logical-routers r5 policy-options policy-statement TO_R4gaozy# set term 1 then accept edit logical-routers r5 policy-options policy-statement TO_R4gaozy# set term 2 from protocol dire

15、ct interface em5.51 edit logical-routers r5 policy-options policy-statement TO_R4gaozy# set term 2 then community set comm51 edit logical-routers r5 policy-options policy-statement TO_R4gaozy# set term 2 then accept edit logical-routers r5 policy-options policy-statement TO_R4第二章 RSR-E系列BGP路由屬性操作lr5

16、將直連路由通告給r4在policy-option下面配置community-listedit logical-routers r5 policy-optionsgaozy# set community comm50 members 5:50 edit logical-routers r5 policy-optionsgaozy# set community comm51 members 5:51 edit logical-routers r5 policy-options第二章 RSR-E系列BGP路由屬性操作lr5將直連路由通告給r4查看policy-option下的配置edit logic

17、al-routers r5gaozy# show policy-options policy-statement TO_R4 term 1 from protocol direct; interface em5.50; then community set comm50; accept; term 2 from protocol direct; interface em5.51; then community set comm51; accept; community comm50 members 5:50;community comm51 members 5:51;edit logical-

18、routers r5第二章 RSR-E系列BGP路由屬性操作l查看r5通告給r4的BGP路由edit logical-routers r5gaozy# run show route advertising-protocol bgp 9.9.0.4 logical-router r5 inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path* 50.0.0.0/8 Self 100 I* 51.0.0.0/8 Self 100 Iedit logi

19、cal-routers r5gaozy# run show route advertising-protocol bgp 9.9.0.4 logical-router r5 detail inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)* 50.0.0.0/8 (1 entry, 1 announced) BGP group IBGP_Peer type Internal Nexthop: Self Localpref: 100 AS path: 2 I Communities: 5:50* 51.0.0.

20、0/8 (1 entry, 1 announced) BGP group IBGP_Peer type Internal Nexthop: Self Localpref: 100 AS path: 2 I Communities: 5:51第二章 RSR-E系列BGP路由屬性操作lr4的路由表gaozy# run show route protocol bgp logical-router r4 inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Activ

21、e, * = Both50.0.0.0/8 *BGP/170 00:32:00, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.4551.0.0.0/8 *BGP/170 00:31:59, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.45gaozy# run show route receive-protocol bgp 9.9.0.5 logical-router r4 inet.0: 14 destinations, 14 routes (14

22、 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path* 50.0.0.0/8 9.9.0.5 100 I* 51.0.0.0/8 9.9.0.5 100 I第二章 RSR-E系列BGP路由屬性操作lr4的路由表gaozy# run show route protocol bgp detail logical-router r4 inet.0: 14 destinations, 14 routes (14 active, 0 holddown, 0 hidden)50.0.0.0/8 (1 entry, 1 annou

23、nced) *BGP Preference: 170/-101 Next hop type: Indirect Next-hop reference count: 6 Source: 9.9.0.5 Next hop type: Router, Next hop index: 639 Next hop: 9.9.45.5 via em4.45, selected Protocol next hop: 9.9.0.5 Indirect next hop: 8a22000 131070 State: Local AS: 2 Peer AS: 2 Age: 33:53 Metric2: 1 Task

24、: BGP_2.9.9.0.5+49315 Announcement bits (3): 0-KRT 3-BGP RT Background 4-Resolve tree 1 AS path: I Communities: 5:50 Localpref: 100 Router ID: 9.9.0.5第二章 RSR-E系列BGP路由屬性操作lr4的路由表gaozy# run show route receive-protocol bgp 9.9.0.5 logical-router r4 detailinet.0: 14 destinations, 14 routes (14 active, 0

25、 holddown, 0 hidden)* 50.0.0.0/8 (1 entry, 1 announced) Nexthop: 9.9.0.5 Localpref: 100 AS path: I Communities: 5:50* 51.0.0.0/8 (1 entry, 1 announced) Nexthop: 9.9.0.5 Localpref: 100 AS path: I Communities: 5:51第二章 RSR-E系列BGP路由屬性操作lr2、r3的路由表gaozy# run show route protocol bgp logical-router r2 inet.

26、0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both50.0.0.0/8 *BGP/170 00:36:29, localpref 100, from 9.9.0.4 AS path: I to 9.9.24.4 via em2.2451.0.0.0/8 *BGP/170 00:36:27, localpref 100, from 9.9.0.4 AS path: I to 9.9.24.4 via em2.24gaozy# run s

27、how route protocol bgp logical-router r3 inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both50.0.0.0/8 *BGP/170 00:36:48, localpref 100, from 9.9.0.4 AS path: I to 9.9.34.4 via em3.3451.0.0.0/8 *BGP/170 00:36:46, localpref 100, from 9.9.0.4

28、 AS path: I to 9.9.34.4 via em3.34第二章 RSR-E系列BGP路由屬性操作lr2、r3的路由表gaozy# run show route receive-protocol bgp 9.9.0.4 logical-router r2 detailinet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)* 50.0.0.0/8 (1 entry, 1 announced) Nexthop: 9.9.0.5 Localpref: 100 AS path: I (Originator) C

29、luster list: 9.9.0.4 AS path: Originator ID: 9.9.0.5 Communities: 5:50* 51.0.0.0/8 (1 entry, 1 announced) Nexthop: 9.9.0.5 Localpref: 100 AS path: I (Originator) Cluster list: 9.9.0.4 AS path: Originator ID: 9.9.0.5 Communities: 5:51第二章 RSR-E系列BGP路由屬性操作lr2、r3的路由表gaozy# run show route receive-protoco

30、l bgp 9.9.0.4 logical-router r3 detail inet.0: 15 destinations, 15 routes (15 active, 0 holddown, 0 hidden)* 50.0.0.0/8 (1 entry, 1 announced) Nexthop: 9.9.0.5 Localpref: 100 AS path: I (Originator) Cluster list: 9.9.0.4 AS path: Originator ID: 9.9.0.5 Communities: 5:50* 51.0.0.0/8 (1 entry, 1 annou

31、nced) Nexthop: 9.9.0.5 Localpref: 100 AS path: I (Originator) Cluster list: 9.9.0.4 AS path: Originator ID: 9.9.0.5 Communities: 5:51第二章 RSR-E系列BGP路由屬性操作lr1的路由表gaozy# run show route protocol bgp logical-router r1 inet.0: 11 destinations, 13 routes (11 active, 0 holddown, 0 hidden)+ = Active Route, -

32、 = Last Active, * = Both50.0.0.0/8 *BGP/170 00:47:27, localpref 100 AS path: 2 I to 9.9.12.2 via em1.12 BGP/170 01:43:48, localpref 100 AS path: 2 I to 9.9.13.3 via em1.1351.0.0.0/8 *BGP/170 00:47:27, localpref 100 AS path: 2 I to 9.9.12.2 via em1.12 BGP/170 01:43:46, localpref 100 AS path: 2 I to 9

33、.9.13.3 via em1.13第二章 RSR-E系列BGP路由屬性操作l數據流走向的需求r2、r3利用MED屬性來影響r1的路由選路r2、r3利用Local Preference屬性來影響r4的路由選路R2R3R1R4AS1AS2IBGPEBGPEBGPIBGP10.0.0.0/811.0.0.0/851.0.0.0/8R5IBGP50.0.0.0/8RROSPF第二章 RSR-E系列BGP路由屬性操作lr2、r3利用MED屬性來影響r1的路由選路edit logical-routers r2gaozy# show protocols bgp group IBGP_Peer type i

34、nternal; local-address 9.9.0.2; neighbor 9.9.0.4;group EBGP_Peer type external; export TO_R1; neighbor 9.9.12.1 peer-as 1; edit logical-routers r2gaozy# show policy-options policy-statement TO_R1 term 1 from community comm50; then metric 100; accept; term 2 from community comm51; then metric 200; ac

35、cept; community comm50 members 5:50;community comm51 members 5:51;第二章 RSR-E系列BGP路由屬性操作lr2、r3利用MED屬性來影響r1的路由選路edit logical-routers r3gaozy# show protocols bgp group IBGP_Peer type internal; local-address 9.9.0.3; neighbor 9.9.0.4;group EBGP_Peer export TO_R1; peer-as 1; neighbor 9.9.13.1;edit logical

36、-routers r3gaozy# show policy-options policy-statement TO_R1 term 1 from community comm50; then metric 200; accept; term 2 from community comm50 comm51 ; then metric 100; accept; community comm50 members 5:50;community comm51 members 5:51;第二章 RSR-E系列BGP路由屬性操作lr1的路由表gaozy# run show route protocol bgp

37、 logical-router r1 inet.0: 11 destinations, 13 routes (11 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both50.0.0.0/8 *BGP/170 00:25:10, MED 100, localpref 100 AS path: 2 I to 9.9.12.2 via em1.12 BGP/170 00:10:33, MED 200, localpref 100 AS path: 2 I to 9.9.13.3 via em1.1351.0.

38、0.0/8 *BGP/170 00:10:32, MED 100, localpref 100 AS path: 2 I to 9.9.13.3 via em1.13 BGP/170 00:25:10, MED 200, localpref 100 AS path: 2 I to 9.9.12.2 via em1.12第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路r1通告路由給r2、r3edit logical-routers r1gaozy# show protocols bgp group EBGP_Peer export

39、TO_AS1; peer-as 2; neighbor 9.9.12.2; neighbor 9.9.13.3;edit logical-routers r1gaozy# show policy-options policy-statement TO_AS1 term 1 from protocol direct; interface em1.10; then community set comm10; accept; term 2 from protocol direct; interface em1.11; then community set comm11; accept; commun

40、ity comm10 members 1:10;community comm11 members 1:11;第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路R4的路由表gaozy# run show route protocol bgp logical-router r4 inet.0: 16 destinations, 18 routes (14 active, 0 holddown, 4 hidden)+ = Active Route, - = Last Active, * = Both50.0.0.0/8 *BGP/170

41、02:51:18, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.4551.0.0.0/8 *BGP/170 02:51:17, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.45第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路R4的路由表(r2、r3不做任何策略)gaozy# run show route protocol bgp logical-router r4 inet.0: 16

42、 destinations, 18 routes (14 active, 0 holddown, 4 hidden)+ = Active Route, - = Last Active, * = Both50.0.0.0/8 *BGP/170 02:51:18, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.4551.0.0.0/8 *BGP/170 02:51:17, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.45第二章 RSR-E系列BGP路由屬

43、性操作lr2、r3利用Local Preference屬性來影響r4的路由選路R4的路由表(r2、r3不做任何策略)gaozy# run show route protocol bgp logical-router r4 hidden inet.0: 16 destinations, 18 routes (14 active, 0 holddown, 4 hidden)+ = Active Route, - = Last Active, * = Both10.0.0.0/8 BGP/170 00:00:35, localpref 100, from 9.9.0.2 AS path: 1 I U

44、nusable BGP/170 00:00:37, localpref 100, from 9.9.0.3 AS path: 1 I Unusable11.0.0.0/8 BGP/170 00:00:35, localpref 100, from 9.9.0.2 AS path: 1 I Unusable BGP/170 00:00:37, localpref 100, from 9.9.0.3 AS path: 1 I Unusable第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路edit logical-routers r2

45、gaozy# show protocols bgp group IBGP_Peer type internal; local-address 9.9.0.2; export TO_R4; neighbor 9.9.0.4;group EBGP_Peer type external; import FROM_R1; export TO_R1; neighbor 9.9.12.1 peer-as 1; edit logical-routers r2gaozy# show policy-options policy-statement FROM_R1 term 1 from community co

46、mm10; then local-preference 300; term 2 from community comm11; then local-preference 200; policy-statement TO_R4 term 1 then next-hop self; community comm10 members 1:10;community comm11 members 1:11;第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路edit logical-routers r3gaozy# show protocols

47、 bgp group IBGP_Peer type internal; local-address 9.9.0.3; export TO_R4; neighbor 9.9.0.4;group EBGP_Peer import FROM_R1; export TO_R1; peer-as 1; neighbor 9.9.13.1;edit logical-routers r3gaozy# show policy-options policy-statement FROM_R1 term 1 from community comm10; then local-preference 200; ter

48、m 2 from community comm11; then local-preference 300; policy-statement TO_R4 term 1 then next-hop self; community comm10 members 1:10;community comm11 members 1:11;第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路r4的路由表gaozy# run show route protocol bgp logical-router r4 inet.0: 16 destinatio

49、ns, 16 routes (16 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both10.0.0.0/8 *BGP/170 00:05:24, localpref 300, from 9.9.0.2 AS path: 1 I to 9.9.24.2 via em4.2411.0.0.0/8 *BGP/170 00:05:23, localpref 300, from 9.9.0.3 AS path: 1 I to 9.9.34.3 via em4.3450.0.0.0/8 *BGP/170 04:2

50、1:47, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.4551.0.0.0/8 *BGP/170 04:21:46, localpref 100, from 9.9.0.5 AS path: I to 9.9.45.5 via em4.45第二章 RSR-E系列BGP路由屬性操作lr2、r3利用Local Preference屬性來影響r4的路由選路r2的路由表gaozy# run show route protocol bgp logical-router r2 inet.0: 17 destinations, 18 routes (17 active, 0 holddown, 0 hidden)+ = Active Route, - = Last Active, * = Both10.0.0.0/8 *BGP/170 01:35:02, localpref 300 AS path: 1 I t

溫馨提示

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

評論

0/150

提交評論