




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CCNP知识重点:思科设备BGP路径属性配置BGP协议与传统的路由协议相比最大的优势在于可以通过调整BGP的属性值影响选路,今天的技术帖我们就给大家举例介绍思科设备BGP路径属性的配置。拓扑图如下图所示:(1)IGP协议配置/RTA配置RTA(config)#interface Loopback0RTA(config-if)#ip address 1.1.1.1 255.255.255.255RTA(config)#interface Loopback10RTA(config-if)#ip address 10.10.10.10 255.255.255.255RTA(config)#interface Ethernet0/0RTA(config-if)#ip address 100.1.1.1 255.255.255.0RTA(config)#interface Ethernet0/1RTA(config-if)#ip address 100.1.2.1 255.255.255.0/RTB配置RTB(config)#interface Loopback0RTB(config-if)#ip address 2.2.2.2 255.255.255.255RTB(config)#interface Ethernet0/0RTB(config-if)#ip address 100.1.1.2 255.255.255.0RTB(config)#interface Ethernet0/1RTB(config-if)#ip address 192.168.1.1 255.255.255.0RTB(config)#router ospf 110RTB(config-router)#router-id 2.2.2.2RTB(config-router)#network 2.2.2.2 0.0.0.0 area 0RTB(config-router)#network 192.168.1.0 0.0.0.255 area 0/RTC配置RTC(config)#interface Loopback0RTC(config-if)#ip address3.3.3.3255.255.255.255RTC(config)#interface Ethernet0/0RTC(config-if)#ip address 100.1.2.2 255.255.255.0RTC(config)#interface Ethernet0/1RTC(config-if)#ip address 192.168.2.1 255.255.255.0RTC(config)#router ospf 110RTC(config-router)#router-id3.3.3.3RTC(config-router)#network3.3.3.30.0.0.0 area 0RTC(config-router)#network 192.168.2.0 0.0.0.255 area 0/RTD配置RTD(config)#interface Loopback0RTD(config-if)#ip address 4.4.4.4 255.255.255.255RTD(config)#interface Loopback40RTD(config-if)#ip address 40.40.40.40 255.255.255.255RTD(config)#interface Ethernet0/0RTD(config-if)#ip address 192.168.2.2 255.255.255.0RTD(config)#interface Ethernet0/1RTD(config-if)#ip address 192.168.1.2 255.255.255.0RTD(config)#router ospf 110RTD(config-router)#router-id 4.4.4.4RTD(config-router)#network 4.4.4.4 0.0.0.0 area 0RTD(config-router)#network 192.168.1.0 0.0.0.255 area 0RTD(config-router)#network 192.168.2.0 0.0.0.255 area 0(2)BGP基本配置/RTA配置RTA(config)#router bgp 100RTA(config-router)#bgp router-id 1.1.1.1RTA(config-router)#network 10.10.10.10 mask 255.255.255.255RTA(config-router)#neighbor 100.1.1.2 remote-as 200RTA(config-router)#neighbor 100.1.2.2 remote-as 200/RTB配置RTB(config)#router bgp 200RTB(config-router)#bgp router-id 2.2.2.2RTB(config-router)#neighbor 4.4.4.4 remote-as 200RTB(config-router)#neighbor 4.4.4.4 update-source Loopback0RTB(config-router)#neighbor 100.1.1.1 remote-as 100RTB(config-router)#address-family ipv4RTB(config-router-af)#neighbor 4.4.4.4 activateRTB(config-router-af)#neighbor 100.1.1.1 activate/RTC配置RTC(config)#router bgp 200RTC(config-router)#bgp router-id 3.3.3.3RTC(config-router)#neighbor 4.4.4.4 remote-as 200RTC(config-router)#neighbor 4.4.4.4 update-source Loopback0RTC(config-router)#neighbor 100.1.2.1 remote-as 100RTC(config-router)#address-family ipv4RTC(config-router-af)#neighbor 4.4.4.4 activateRTC(config-router-af)#neighbor 100.1.2.1 activate/RTD配置RTD(config)#router bgp 200RTD(config-router)#bgp router-id 4.4.4.4RTD(config-router)#network 40.40.40.40 mask 255.255.255.255RTD(config-router)#neighbor 2.2.2.2 remote-as 200RTD(config-router)#neighbor 2.2.2.2 update-source Loopback0RTD(config-router)#neighbor 3.3.3.3 remote-as 200RTD(config-router)#neighbor 3.3.3.3 update-source Loopback0查看RTD BGP路由信息RTD#show ip bgpBGP table version is 2, local router ID is 4.4.4.4Status codes: s suppressed, d damped, h history, * valid, best, i - internal,r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,x best-external, a additional-path, c RIB-compressed,Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not foundNetworkNext HopMetricLocPrfWeightPath* i 10.10.10.10/32100.1.1.10 1000100 i* i 100.1.2.10 1000100 i* 40.40.40.40/32 0.0.0.00 32768i从上述现象发现,RTD学习的10.10.10.10/32路由的下一跳地址为RTA,针对RTD而言不可达,所以该路由非有最优(3)配置NEXT_HOP属性/RTB配置RTB(config-router-af)#neighbor 4.4.4.4 next-hop-self/RTC配置RTC(config-router-af)#neighbor 4.4.4.4 next-hop-self查看RTD BGP路由信息RTD#show ip bgpBGP table version is 4, local router ID is 4.4.4.4Status codes: s suppressed, d damped, h history, * valid, best, i - internal,r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,x best-external, a additional-path, c RIB-compressed,Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not foundNetworkNext HopMetricLocPrfWeightPath* i10.10.10.10/323.3.3.301000100 i*i2.2.2.201000100 i* 40.40.40.40/320.0.0.0032768i(4)配置LOCAL_PREFERENCE属性/RTC配置RTC(config-router-af)#bgp default local-preference 200查看RTD BGP路由信息RTD#show ip bgpBGP table version is 4, local router ID is 4.4.4.4Status codes: s suppressed, d damped, h history, * valid, best, i - internal,r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,x best-external, a additional-path, c RIB-compressed,Origin codes: i - IGP, e - EGP, ? - incompleteRPKI validation codes: V valid, I invalid, N Not foundNetworkNext HopMetricLocPrfWeightPath* i10.10.10.10/322.2.2.20 1000100 i*i3.3.3.30 2000100 i* 40.40.40.40/320.0.0.00 32768i从上述现象发现,RTD优选从RTC接收10.10.10.10/32路由RTD#traceroute10.10.10.10 source 40.40.40.40Type escape sequence to abort.Tracing the route to 10.10.10.10VRF info: (vrf in name/id, vrf out name/id)1 192.168.2.1 1 msec 1 msec 1 msec2 100.1.2.1 1 msec 1 msec *从上述现象发现,RTD的40.40.40.40/32网段访问10.10.10.10/32网段的流量路径走RTD-RTC-RTA南京建策科技股份有限公司于2004年成立,是IT教育培训中心。建策科技建立了完整的建策职业教育体系,致力于搭建为高校、学生、企业提供一站式解决方案的综合性
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度城市更新土地买卖合同范本
- 2025年度汽车租赁公司司机外包合作协议
- 说课数据的收集与课件
- 说好普通话课件
- 2025专业版北京市租赁合同范本
- 红色筑梦者公益课件
- 2025合同撤销权的行使条件
- 高三互相礼让的作文7篇范文
- 销售团队业绩分析模板业绩预测与策略制定工具
- 学校校园网络信息化管理合作协议
- 血液透析中心可行性研究投资报告
- 山西晋中教师职称考试试题及答案
- 法人变更交接协议书
- 自愿顶名协议书范本
- 老年人多重用药评估与管理中国专家共识(2024)解读课件
- 2025-2030中国别嘌醇片行业市场发展分析及发展趋势与投资战略研究报告
- 2025年上海中考复习必背英语考纲词汇表默写(汉英互译)
- 委托投标合同协议书范本
- 车库洗车日常管理制度
- 旅行社安全管理制度
- 宿管面试试题及答案
评论
0/150
提交评论