



免费预览已结束,剩余1页可下载查看
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Dynamips参数:后续补上实验要求:掌握MPLS基本配置实验配置:运营商骨干网准备工作首先说说运营商骨干网准备工作,配置主要分以下几个部分:1、在PE和P上配置IGP,使骨干网连通。2、在PE和P上配置MPLS,启动标签交换。1、在PE和P上配置IGP。在此选择EIGRP/OSPF/RIP/ISIS中任意一款路由协议均可,此例中使用EIGRP。R3:R3(config)# router eigrp 100R3(config-router)# network 3.3.3.3 0.0.0.0 !R3的loopback 0为3.3.3.3/32R3(config-router)# network 10.1.1.0 0.0.0.3R4:R4(config)# router eigrp 100R4(config-router)# network 10.1.1.0 0.0.0.3R4(config-router)# network 10.1.1.4 0.0.0.3R5:R3(config)# router eigrp 100R3(config-router)# network 5.5.5.5 0.0.0.0 !R5的loopback 0为5.5.5.5/32R3(config-router)# network 10.1.1.4 0.0.0.32、在PE和P上配置MPLSR3:R3(config)# inte*ce s1/2.1 point-to-pointR3(config-if)# description connect to R4R3(config-if)# mpls ipR4:R4(config)# inte*ce s1/2.1 point-to-pointR4(config-if)# description connect to R3R4(config-if)# mpls ipR4(config)# inte*ce s1/2.2 point-to-pointR4(config-if)# description connect to R5R4(config-if)# mpls ipR5:R5(config)# inte*ce s1/2.1 point-to-pointR5(config-if)# description connect to R4R5(config-if)# mpls ip骨干网准备工作配置完毕!客户端(CE)配置接着来谈谈CE的配置,CE需要将客户的网络接入运营商,同时将自己的路由通告给PE,然后由PE通过骨干网将路由通告给该客户的其他CE。在此例中,有两个客户:Customer_A和Customer_B,在通过MPLSVPN时,它们彼此的路由信息不会互相干扰。CE和PE之间可以采用RIP/EIGRP/OSPF/静态路由等方式互相通告路由,CE上的配置也很简单,只需要按照以往一样启动路由协议就够了。例如:R1和R3之间运行RIPv2,那么R1的配置如下:R1(config)# router ripR1(config-router)# version 2R1(config-router)# no auto-summaryR1(config-router)# nework 172.16.0.0R1(config-router)# nework 10.0.0.0CE的配置在此不再敷述了。在后面的示例中,我将在两种情况下讲述PE的配置:1、CE和PE之间运行RIPv22、CE和PE之间运行OSPFPE的配置(CE与PE之间运行RIPv2)PE的配置主要分为以下几个步骤:(以R3配置为例,R5配置不再敷述)1、创建VRF。2、在相应的将接口加入VRF。3、配置与CE间的路由协议。4、配置与其他PE之间的MP-BGP。5、配置重发布。1、创建VRF。R3(config)# ip vrf comAR3(config-vrf)# rd 1:27R3(config-vrf)# route-target export 100:27R3(config-vrf)# route-target import 100:27 R3(config)# ip vrf comBR3(config-vrf)# rd 1:37R3(config-vrf)# route-target export 100:37R3(config-vrf)# route-target import 100:372、在相应的将接口加入VRF。R3(config)# inte*ce Serial1/2.2 point-to-pointR3(config-if)# ip vrf forwarding comAR3(config)# inte*ce Serial1/2.3 point-to-pointR3(config-if)# ip vrf forwarding comB3、配置与CE间的路由协议。R3(config)# router ripR3(config-router)# version 2!R3(config-router)# address-family ipv4 vrf comBR3(config-router-af)# network 10.0.0.0R3(config-router-af)# no auto-summaryR3(config-router-af)# version 2R3(config-router-af)# exit-address-family!R3(config-router)# address-family ipv4 vrf comAR3(config-router-af)# network 10.0.0.0R3(config-router-af)# no auto-summaryR3(config-router-af)# version 2R3(config-router-af)# exit-address-family此时可以使用show ip route vrf XXX查看虚拟路由表是否学习到客户的路由。4、配置与R5之间的MP-BGP。R3(config)# router bgp 100R3(config-router)# no synchronizationR3(config-router)# neighbor 5.5.5.5 remote-as 100R3(config-router)# neighbor 5.5.5.5 update-source Loopback0R3(config-router)# no auto-summary!R3(config-router)# address-family vpnv4R3(config-router-af)# neighbor 5.5.5.5 activateR3(config-router-af)# neighbor 5.5.5.5 send-community bothR3(config-router-af)# exit-address-family!R3(config-router)# address-family ipv4 vrf comBR3(config-router-af)# no auto-summaryR3(config-router-af)# no synchronizationR3(config-router-af)# exit-address-family!R3(config-router)# address-family ipv4 vrf comAR3(config-router-af)# no auto-summaryR3(config-router-af)# no synchronizationR3(config-router-af)# exit-address-family5、配置重发布。R3(config)# router ripR3(config-router)# address-family ipv4 vrf comBR3(config-router-af)# redistribute bgp 100 metric 5!R3(config-router)# address-family ipv4 vrf comAR3(config-router-af)# redistribute bgp 100 metric 5!R3(config)# router bgp 100R3(config-router)# address-family ipv4 vrf comBR3(config-router-af)# redistribute rip!R3(config-router)# address-family ipv4 vrf comAR3(config-router-af)# redistribute rip所有配置完毕。PE的配置(CE与PE之间运行OSPF)基本配置思想与楼上相同,这里就简单说说PE的OSPF配置和MP-BGP配置的不同点吧。R3的OSPF与MP-BGP配置如下:R3(config)# router ospf 1 vrf comAR3(config-router-af)# redistribute bgp 100 subnetsR3(config-router-af)# network 10.1.1.8 0.0.0.3 area 0!R3(config)# router ospf 1 vrf comBR3(config-router-af)# redistribute bgp 100 subnetsR3(config-router-af)# network 10.1.1.12 0.0.0.3 area 0R3(config)# router bgp 100R3(config-router)# no synchronizationR3(config-router)# neighbor 5.5.5.5 remote-as 100R3(config-router)# neighbor 5.5.5.5 update-source Loopback0R3(config-router)# no auto-summary!R3(config-router)# address-family vpnv4R3(config-router-af)# neighbor 5.5.5.5 activateR3(config-router-af)# neighbor 5.5.5.5 send-community bothR3(config-router-af)# exit-address-family!R3(config-router)# address-family ipv4 vrf comAR3(config-router-af)# redistribute ospf 1R3(config-router-af)# no auto-summaryR3(config-router-af)# no synchronizationR3(config-router-af)# exit-a
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 人际沟通技巧挑战题与答案解析集一
- 陕西申论试卷真题及答案
- 2025年进贤中考数学真题及答案
- 图像处理笔试试题及答案
- 学校退费合同(标准版)
- 借贷合同担保合同(标准版)
- 2025年专业电工知识试卷及答案
- 胡萝卜糕点店企业制定与实施新质生产力项目商业计划书
- 老年人兴趣小组社交平台行业跨境出海项目商业计划书
- 木材加工技术转移与咨询服务创新创业项目商业计划书
- 2025政治理论时政热点知识试题库附完整答案
- 民间借贷抗诉申请书
- 消毒灭菌教学课件
- 2025年考研护理综合全程真题及答案
- 工会安全监督培训课件
- 学堂在线 知识产权法 章节测试答案
- 小学道德与法治五年级上册《烟酒有危害》教学课件
- 减脂课件教学课件
- 2025 SMETA员工公平职业发展管理程序-SEDEX验厂专用文件(可编辑)
- 卫生法律法规试题题库(附答案)
- 水浒传鲁智深介绍
评论
0/150
提交评论