BGP的路由反射器_第1页
BGP的路由反射器_第2页
BGP的路由反射器_第3页
BGP的路由反射器_第4页
BGP的路由反射器_第5页
免费预览已结束,剩余15页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、实验五:BGP的路由反射器实验目标:1.熟练BGP的基本配置2.掌握BGP路由反射器的原理实验TOP:物理拓扑(原错误拓扑图)物理拓扑(修改后的拓扑结构)逻辑拓扑基本配置:R1的配置:01!0203hostnamer10405!0607interface Loopback00809ip address 1.1.1.1 255.255.255.01011!1213interface Ethernet0/01415no shu1617!1819interface Ethernet0/0.142021encapsulation dot1Q 142223ip address 10.1.1.1 255.

2、255.255.02425no shu2627!2829interface Ethernet0/0.153031encapsulation dot1Q 153233ip address 20.1.1.1 255.255.255.03435no shu3637!3839interface Serial1/04041ip address 12.1.1.1 255.255.255.04243no shu4445!4647interface Serial2/04849ip address 13.1.1.1 255.255.255.05051no shu5253!5455router ospf 1056

3、57network 10.1.1.0 0.0.0.255 area 05859network 12.1.1.0 0.0.0.255 area 06061network 13.1.1.0 0.0.0.255 area 06263network 20.1.1.0 0.0.0.255 area 06465!6667router bgp 106869no synchronization7071bgp router-id1.1.1.17273network 1.1.1.0 mask 255.255.255.07475neighbor 10.1.1.4 remote-as 207677neighbor 1

4、2.1.1.2 remote-as 107879neighbor 13.1.1.3 remote-as 108081neighbor 20.1.1.5 remote-as 108283no auto-summary8485!868788line con 08990exec-timeout 0 09192logging synchronous9394!R2的配置:01!0203hostnamer20405!0607interface Loopback00809ip address 2.2.2.2 255.255.255.01011!1213!1415interface Serial2/01617

5、ip address 12.1.1.2 255.255.255.01819no shu2021!2223router ospf 102425network 12.1.1.0 0.0.0.255 area 02627!2829router bgp 103031no synchronization3233bgp router-id2.2.2.23435network 2.2.2.0 mask 255.255.255.03637neighbor 12.1.1.1 remote-as 103839no auto-summary4041!4243line con 04445exec-timeout 0

6、04647logging synchronous4849!R3的配置:01!0203hostnamer30405!0607interface Loopback00809ip address 3.3.3.3 255.255.255.01011!1213interface Serial1/01415ip address 13.1.1.3 255.255.255.01617no shu1819!2021!2223router ospf 102425network 13.1.1.0 0.0.0.255 area 02627!2829router bgp 103031no synchronization

7、3233bgp router-id3.3.3.33435network 3.3.3.0 mask 255.255.255.03637neighbor 13.1.1.1 remote-as 103839no auto-summary4041!4243line con 04445exec-timeout 0 04647logging synchronous4849!R4的配置:01!0203hostnamer40405!0607interface Loopback00809ip address 4.4.4.4 255.255.255.01011!1213interface Ethernet0/01

8、415no shu1617!1819interface Ethernet0/0.142021encapsulation dot1Q 142223ip address 10.1.1.4 255.255.255.02425no shu2627!2829!3031router ospf 103233network 10.1.1.0 0.0.0.255 area 03435!3637router bgp 203839no synchronization4041bgp router-id4.4.4.44243network 4.4.4.0 mask 255.255.255.04445neighbor 1

9、0.1.1.1 remote-as 104647no auto-summary4849!5051line con 05253exec-timeout 0 05455logging synchronous5657!R5的配置:01!0203hostnamer50405!0607interface Loopback00809ip address 5.5.5.5 255.255.255.01011!1213interface Ethernet0/01415no shu1617!1819interface Ethernet0/0.152021encapsulation dot1Q 152223ip a

10、ddress 20.1.1.5 255.255.255.02425no shu2627!2829!3031router ospf 103233network 20.1.1.0 0.0.0.255 area 03435!3637router bgp 103839no synchronization4041bgp router-id5.5.5.54243network 5.5.5.0 mask 255.255.255.04445neighbor 20.1.1.1 remote-as 104647no auto-summary4849!5051line con 05253exec-timeout 0

11、 05455logging synchronous5657!验证:下面我们查看一下每个路由器的BGP表,目的是验证BGP中路由条目传递的原则。r1的BGP表r1#show ip bgpBGP table version is 6, local router ID is 1.1.1.1Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Nex

12、t Hop Metric LocPrf Weight Path* 1.1.1.0/24 0.0.0.0 0 32768 i*i2.2.2.0/24 12.1.1.2 0 100 0 i*i3.3.3.0/24 13.1.1.3 0 100 0 i* 4.4.4.0/24 10.1.1.4 0 0 20 i*i5.5.5.0/24 20.1.1.5 0 100 0 ir2的BGP表r2#show ip bgpBGP table version is 4, local router ID is 2.2.2.2Status codes: s suppressed, d damped, h histo

13、ry, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*i1.1.1.0/24 12.1.1.1 0 100 0 i* 2.2.2.0/24 0.0.0.0 0 32768 i*i4.4.4.0/24 10.1.1.4 0 100 0 20 ir3的BGP表r3#show ip bgpBGP table version is 4, local router ID

14、is 3.3.3.3Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*i1.1.1.0/24 13.1.1.1 0 100 0 i* 3.3.3.0/24 0.0.0.0 0 32768 i*i4.4.4.0/24 10.1.1.4 0 100 0 20 ir4的BGP

15、表r4#show ip bgpBGP table version is 6, local router ID is 4.4.4.4Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path* 1.1.1.0/24 10.1.1.1 0 0 10 i* 2.2.2.0/24 10.

16、1.1.1 0 10 i* 3.3.3.0/24 10.1.1.1 0 10 i* 4.4.4.0/24 0.0.0.0 0 32768 i* 5.5.5.0/24 10.1.1.1 0 10 ir5的BGP表r5#show ip bgpBGP table version is 4, local router ID is 5.5.5.5Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP,

17、 ? - incomplete Network Next Hop Metric LocPrf Weight Path*i1.1.1.0/24 20.1.1.1 0 100 0 i*i4.4.4.0/24 10.1.1.4 0 100 0 20 i* 5.5.5.0/24 0.0.0.0 0 32768 i从上面每个路由器的BGP表中我们可以得知,默认情况下,IBGP对等体学习到的路由,在满足同步、可达的前提下,仍不会向其他IBGP对等体通告。但会向EBGP对等体通告。,下面我们把R2做成R1路由反射器的客户来观察一下实验现象。配置如下:r1(config)#router bgp 10r1(co

18、nfig-router)#neighbor 12.1.1.2route-reflector-client下面我们来看一R2的BGP表r2#show ip bgpBGP table version is 10, local router ID is 2.2.2.2Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metri

19、c LocPrf Weight Path*i1.1.1.0/24 12.1.1.1 0 100 0 i* 2.2.2.0/24 0.0.0.0 0 32768 i*i3.3.3.0/24 13.1.1.3 0 100 0 i*i4.4.4.0/24 10.1.1.4 0 100 0 20 i*i5.5.5.0/24 20.1.1.5 0 100 0 i从上面可以得之,R2从R1学到了所有IBGP对等体的路由条目下面再来看一下R3和R5的BGP表r3#show ip bgpBGP table version is 5, local router ID is 3.3.3.3Status codes

20、: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*i1.1.1.0/24 13.1.1.1 0 100 0 i*i2.2.2.0/24 12.1.1.2 0 100 0 i* 3.3.3.0/24 0.0.0.0 0 32768 i*i4.4.4.0/24 10.1.1.4 0 100 0 2

21、0 ir5#show ip bgpBGP table version is 5, local router ID is 5.5.5.5Status codes: s suppressed, d damped, h history, * valid, best, i - internal, r RIB-failure, S StaleOrigin codes: i - IGP, e - EGP, ? - incomplete Network Next Hop Metric LocPrf Weight Path*i1.1.1.0/24 20.1.1.1 0 100 0 i*i2.2.2.0/24 12.1.1.2 0 10

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论