MPLS基本配置.docVIP

  • 12
  • 0
  • 约4.91千字
  • 约 5页
  • 2017-08-15 发布于河南
  • 举报
Dynamips参数:后续补上 实验要求:掌握MPLS基本配置 实验配置:运营商骨干网准备工作 首先说说运营商骨干网准备工作,配置主要分以下几个部分: 1、在PE和P上配置IGP,使骨干网连通。 2、在PE和P上配置MPLS,启动标签交换。 1、在PE和P上配置IGP。 在此选择EIGRP/OSPF/RIP/ISIS中任意一款路由协议均可,此例中使用EIGRP。 R3: R3(config)# router eigrp 100 R3(config-router)# network 3.3.3.3 0.0.0.0? ?? ? !R3的loopback 0为3.3.3.3/32 R3(config-router)# network 10.1.1.0 0.0.0.3 R4: R4(config)# router eigrp 100 R4(config-router)# network 10.1.1.0 0.0.0.3 R4(config-router)# network 10.1.1.4 0.0.0.3 R5: R3(config)# router eigrp 100 R3(config-router)# network 5.5.5.5 0.0.0.0? ?? ? !R5的loopback 0为5.5.5.5/32 R3(config-router)# network 10.1.1.4 0.0.0.3 2、在PE和P上配置MPLS R3: R3(config)# inte***ce s1/2.1 point-to-point R3(config-if)# description connect to R4 R3(config-if)# mpls ip R4: R4(config)# inte***ce s1/2.1 point-to-point R4(config-if)# description connect to R3 R4(config-if)# mpls ip R4(config)# inte***ce s1/2.2 point-to-point R4(config-if)# description connect to R5 R4(config-if)# mpls ip R5: R5(config)# inte***ce s1/2.1 point-to-point R5(config-if)# description connect to R4 R5(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 rip R1(config-router)# version 2 R1(config-router)# no auto-summary R1(config-router)# nework 172.16.0.0 R1(config-router)# nework 10.0.0.0 CE的配置在此不再敷述了。 在后面的示例中,我将在两种情况下讲述PE的配置: 1、CE和PE之间运行RIPv2 2、CE和PE之间运行OSPF PE的配置(CE与PE之间运行RIPv2) PE的配置主要分为以下几个步骤:(以R3配置为例,R5配置不再敷述) 1、创建VRF。 2、在相应的将接口加入VRF。 3、配置与CE间的路由协议。 4、配置与其他PE之间的MP-BGP。 5、配置重发布。 1、创建VRF。 R3(config)# ip vrf comA R3(config-vrf)# rd 1:27 R3(config-vrf)# route-target export 100:27 R3(config-vrf)# route-target import 100:27 ? ?? ??? R3(config)# ip vrf comB R3(config-vrf)# rd 1:37 R3(config-vrf)# route-target export 100:37 R3(config-vrf)# route-target import 100:37 2、在相应的将接口加入VRF

文档评论(0)

1亿VIP精品文档

相关文档