免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CCNP第十五讲-BGP的其他重要属性打破IBGP路由传递原则的两大方式1. 路由反射器(router reflector)2. 联邦(confederation)一、 路由反射器定义了cluster 中IBGP邻居关系有一台路由器为RR Server,其他为RR Client,RR Client之间没有邻接关系,RR Server和所有RR Client有邻接关系。1. RR收到一条EBGP路由,会将其转发给所有其他EBGP路由,以及所有IBGP对等体(包括client以及nonclient)2. RR收到一条IBGP路由,该路由是client传递的,RR会将其转发给所有其他的RR,以及所有IBGP的non-client以及所有EBGP对等体。3. RR收到了一条IBGP路由(该路由器是由non-client传递的RR会将其转发给所有client以及EBGP对等体,但是不会传递给所有其他的non-client)在该拓扑图中偶切断R2和R4的邻居关系R2(config)#router bgp 1R2(config-router)#neighbor 24.1.1.4 shutdownR4(config)#router bgp 4R4(config-router)#neighbor 24.1.1.2 shutdown把R3配置为RR Server,R2配置为RR ClientR3(config)#router bgp 1R3(config-router)#neighbor 2.2.2.2 route-reflector-client3. 联邦R1、R3在z子AS 65001,R2在子AS 65002内R1(config)#router bgp 65001R1(config-router)#no synchronizationR1(config-router)#no auto-summaryR1(config-router)#bgp router-id 1.1.1.1R1(config-router)#bgp confederation indentifier 1R1(config-router)#neighbor 14.1.1.4 remote-as 4R1(config-router)#neighbor 3.3.3.3 remote-as 65001R1(config-router)#neighbor 3.3.3.3 update-source loopback 0R1(config-router)#neighbor 3.3.3.3 next-hop-selfR3(config)#router bgp 65001R3(config-router)#no synchronizationR3(config-router)#no auto-summaryR3(config-router)#bgp router-id 3.3.3.3R3(config-router)#bgp confederation identifier 1R3(config-router)#neighbor 1.1.1.1 remote-as 65001R3(config-router)#neighbor 1.1.1.1 update-source loopback 0R3(config-router)#neighbor 2.2.2.2 remote-as 65002R3(config-router)#neighbor 2.2.2.2 update-source loopback 0R3(config-router)#neighbor 2.2.2.2 ebgp-multihopR3(config-router)#bgp confederation peers 65002R2(config)#router bgp 65002R2(config-router)#no synchronizationR2(config-router)#no auto-summaryR2(config-router)#bgp router-id 2.2.2.2R2(config-router)#bgp confederation identifier 1R2(config-router)#neighbor 3.3.3.3 remote-as 65001R2(config-router)#neighbor 3.3.3.3 update-source loopback 0R2(config-router)#neighbor 3.3.3.3 ebgp-multihopR2(config-router)#bgp confederation peers 65001R1#show ip bgpR2#show ip bgpR2#show ip bgp 4.4.4.0 255.255.255.0部署联邦的步骤:1. 所有联邦内路由器启用BGP进程的AS号都是子AS号,联邦内建立邻居指的是对方的子AS号,外部路由器直连帮内BGP邻居指的是主AS号。2. 所有联邦内路由器都要宣称自己属于主AS号3. 联邦内路由器建立EBGP邻居关系需要制定本地和什么字AS邻接。在实际应用中,我们往回结合路由反射器和联邦一起使用,来解决问题。Community属性(团体属性)公认自由 不可传递1. StandardNo-ExportNo-advertiseLocal as需求:R4给R1发送标准团体属性no-advertiseR4(config)#ip prefix-list 20 permit 4.4.4.0/24R4(config)route-map COM permit 40R4(config-route-map)#match ip address prefix-list 20R4(config-route-map)#set community no-advertiseR4(config)#route-map COM permit 50R4(config)#router bgp 4R4(config-router)#neighbor 14.1.1.1 route-map COM outR4(config-router)#neighbor 14.1.1.1 route-map send-community standardR1#show ip bgp 4.4.4.0 255.255.255.0R3#show ip bgp总结:No-Advertise,当路由器收到带有该团体属性的BGP路由的时候,该路由无法传递给任何其他的BGP对等体。2. No-ExortR4(config)#ip prefix-list 20 permit 4.4.4.0/24R4(config)route-map COM permit 40R4(config-route-map)#match ip address prefix-list 20R4(config-route-map)#set community no-exportR4(config)#route-map COM permit 50R4(config)#router bgp 4R4(config-router)#neighbor 14.1.1.1 route-map COM outR4(config-router)#neighbor 14.1.1.1 route-map send-community standardR1(config)router bgp 65001R1(config-router)#neighbor 3.3.3.3 send-communityR3#clear ip bgp * softR3#show ip bgp 4.4.4.0 255.255.255.0R5#clear ip bgp * softR5#show ip bgp 总结:no-export:在与路由收到带有该团体属性的BGP路由的候,该路由无法传递给其他AS域内,只能在AS域内传递,如果该AS起了联邦,则该路由可以在联邦内子AS域之间传递。3. Local-asR4(config)#ip prefix-list 20 permit 4.4.4.0/24R4(config)route-map COM permit 40R4(config-route-map)#match ip address prefix-list 20R4(config-route-map)#set community local-asR4(config)#route-map COM permit 50R4(config)#router bgp 4R4(config-router)#neighbor 14.1.1.1 route-map COM outR4(config-router)#neighbor 14.1.1.1 route-map send-community standardR1#show ip bgpR3#show ip bgpR2#show ip bgp总结:local-AS:当路由收到带有该团体属性的的路由的时候,该路由只能在接收者所在的AS域内传递,无论该AS域是个主AS域还是联邦内子AS域。4. ag标记的路由过滤R4(config)#ip prefix-list 20 permit 4.4.4.0/24R4(config)route-map COM permit 40R4(config-route-map)#match ip address prefix-list 20R4(config-route-map)#set community 50:50R4(config)#route-map COM permit 50R4(config)#router bgp 4R4(config-router)#neighbor 14.1.1.1 route-map COM outR4(config-router)#neighbor 14.1.1.1 route-map send-community standardR3(config)#ip community-list standard DNEY permit 5
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小学综合实践活动手工制作课件
- 小学美术课程教学设计及教材资源分析
- 一年级下学期数学两位数加减法重点练习
- 英语期中测试卷及听力答题技巧
- 新能源车间生产管理与质量控制方案
- 小学古诗词鉴赏教学辅助材料
- 大班儿童美术主题活动实施方案
- 大学生英文面试自我介绍范文集
- 药物咨询标准服务流程手册
- 小学英语教学设计示例与课堂实录
- 2024年甘肃省高中学业水平合格考数学试卷试题(含答案解析)
- DG-TJ08-401-2016 公共厕所规划和设计标准
- 电工高级工考试题库(考试带答案)
- 中国电信划小承包方案
- 放射性物质的安全操作培训
- 中国脑性瘫痪康复指南解读(完整版)
- 维护国家安全知识讲座
- 小青蛙找老婆
- 每个人的经济学知到章节答案智慧树2023年海南职业技术学院
- 基层卫勤保障中的相关问题及对策探析
- 细节决定成败(优秀班会课件)
评论
0/150
提交评论