MPLS基本配置.doc

上传人:夏** 文档编号:560543739 上传时间:2023-04-01 格式:DOC 页数:5 大小:238.50KB
返回 下载 相关 举报
MPLS基本配置.doc_第1页
第1页 / 共5页
MPLS基本配置.doc_第2页
第2页 / 共5页
MPLS基本配置.doc_第3页
第3页 / 共5页
MPLS基本配置.doc_第4页
第4页 / 共5页
MPLS基本配置.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《MPLS基本配置.doc》由会员分享,可在线阅读,更多相关《MPLS基本配置.doc(5页珍藏版)》请在金锄头文库上搜索。

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

2、 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(conf

3、ig)# 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)# mp

4、ls 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/静态路由等方式互相通告路由,C

5、E上的配置也很简单,只需要按照以往一样启动路由协议就够了。例如: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)

6、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)# r

7、oute-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

8、)# 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(conf

9、ig-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)# neigh

10、bor 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 c

11、omBR3(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(co

12、nfig)# 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-ro

13、uter-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-route

14、r-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-r

15、outer)# 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-summaryR

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 科普知识

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号