所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

S9300, S9300E, S9300X V200R010C00 配置指南-MPLS

本文档介绍了设备支持的MPLS相关配置。主要内容包括静态LSP的基本原理和配置过程、MPLS LDP的基本原理和配置过程、MPLS QoS的基本原理和配置过程、MPLS TE的基本原理和配置过程、MPLS OAM的基本原理和配置过程、Seamless MPLS的基本原理和配置过程,并提供相关的配置案例。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置域内Seamless MPLS示例

配置域内Seamless MPLS示例

组网需求

图7-12所示的网络中,接入层(Access)、汇聚层(Aggregation)和核心层(Core)网络处于同一个AS内。为了实现基站(NodeB)与MME/SGW互通并提供VPN服务,用户希望将MPLS技术扩展至接入层网络,在接入层、汇聚层和核心层网络中部署一条完整的LSP,提供一种端到端的服务,从而简化端到端的业务配置和网络管理,则可以在该组网内部署域内Seamless MPLS。

图7-12  配置域内Seamless MPLS组网

配置思路

采用如下的思路配置域内Seamless MPLS:

  1. 在各个网络层内配置IGP协议,实现各自网络层内互通。

  2. 在各个设备上配置MPLS基本能力和MPLS LDP,建立MPLS LSP。

  3. 在各个网络层内建立IBGP邻居,并使能标签路由交换能力。

  4. 将AGG、Core_ABR设备配置成路由反射器,通过路由反射使CSG和MASG获得对方的Loopback路由。

  5. 在各个设备上配置路由策略建立BGP LSP:在BGP LSP的起始节点上,需要为向下游发布的路由分配MPLS标签;在BGP LSP的中间节点上,如果从上游收到带标签的IPv4路由,则需要为其重新分配MPLS标签,然后向下游发布。

  6. 在CSG和MASG间建立MP-IBGP邻居,使CSG和MASG之间可以传递VPNv4路由。

  7. 在CSG和MASG上配置VPN实例,用于保存私网路由。

操作步骤

  1. 在设备上创建VLAN、VLANIF接口,配置VLANIF接口的IP地址,并将相应的物理接口加入到VLAN

    # 配置CSG。AGG、Core_ABR和MASG的配置与CSG类似,不再赘述。

    <Quidway> system-view
    [Quidway] sysname CSG
    [CSG] interface loopback 1
    [CSG-LoopBack1] ip address 1.1.1.9 32
    [CSG-LoopBack1] quit
    [CSG] vlan batch 100 400
    [CSG] interface vlanif 100
    [CSG-Vlanif100] ip address 172.1.1.1 24
    [CSG-Vlanif100] quit
    [CSG] interface vlanif 400
    [CSG-Vlanif400] ip address 10.1.1.1 24
    [CSG-Vlanif400] quit
    [CSG] interface gigabitethernet1/0/1
    [CSG-GigabitEthernet1/0/1] port link-type trunk
    [CSG-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
    [CSG-GigabitEthernet1/0/1] quit
    [CSG] interface gigabitethernet1/0/2
    [CSG-GigabitEthernet1/0/2] port link-type trunk
    [CSG-GigabitEthernet1/0/2] port trunk allow-pass vlan 400
    [CSG-GigabitEthernet1/0/2] quit
    

  2. 配置OSPF或IS-IS协议发布各节点接口所连网段和LSR ID的主机路由

    # 配置CSG。

    [CSG] ospf 1
    [CSG-ospf-1] area 0
    [CSG-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
    [CSG-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
    [CSG-ospf-1-area-0.0.0.0] quit
    [CSG-ospf-1] quit

    # 配置AGG。

    [AGG] ospf 1
    [AGG-ospf-1] area 0
    [AGG-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
    [AGG-ospf-1-area-0.0.0.0] network 172.1.1.0 0.0.0.255
    [AGG-ospf-1-area-0.0.0.0] quit
    [AGG-ospf-1] quit
    [AGG] isis 1
    [AGG-isis-1] network-entity 10.0000.0000.0000.0010.00
    [AGG-isis-1] quit
    [AGG] interface vlanif 200
    [AGG-Vlanif200] isis enable 1
    [AGG-Vlanif200] quit
    [AGG] interface loopback 1
    [AGG-LoopBack1] isis enable 1
    [AGG-LoopBack1] quit

    # 配置Core_ABR。

    [Core_ABR] ospf 2
    [Core_ABR-ospf-2] area 0
    [Core_ABR-ospf-2-area-0.0.0.0] network 3.3.3.9 0.0.0.0
    [Core_ABR-ospf-2-area-0.0.0.0] network 172.3.1.0 0.0.0.255
    [Core_ABR-ospf-2-area-0.0.0.0] quit
    [Core_ABR-ospf-2] quit
    [Core_ABR] isis 1
    [Core_ABR-isis-1] network-entity 10.0000.0000.0000.0020.00
    [Core_ABR-isis-1] quit
    [Core_ABR] interface vlanif 200
    [Core_ABR-Vlanif200] isis enable 1
    [Core_ABR-Vlanif200] quit
    [Core_ABR] interface loopback 1
    [Core_ABR-LoopBack1] isis enable 1
    [Core_ABR-LoopBack1] quit

    # 配置MASG。

    [MASG] ospf 2
    [MASG-ospf-2] area 0
    [MASG-ospf-2-area-0.0.0.0] network 4.4.4.9 0.0.0.0
    [MASG-ospf-2-area-0.0.0.0] network 172.3.1.0 0.0.0.255
    [MASG-ospf-2-area-0.0.0.0] quit
    [MASG-ospf-2] quit

  3. 在各设备上配置全局的MPLS和MPLS LDP能力

    # 配置CSG。AGG、Core_ABR和MASG的配置与CSG类似,不再赘述。

    [CSG] mpls lsr-id 1.1.1.9
    [CSG] mpls
    [CSG-mpls] quit
    [CSG] mpls ldp
    [CSG-mpls-ldp] quit
    [CSG] interface vlanif 100
    [CSG-Vlanif100] mpls
    [CSG-Vlanif100] mpls ldp
    [CSG-Vlanif100] quit

  4. 在各个网络层内分别建立IBGP邻居,并使能标签路由交换能力

    # 配置CSG。

    [CSG] bgp 100
    [CSG-bgp] peer 2.2.2.9 as-number 100
    [CSG-bgp] peer 2.2.2.9 connect-interface LoopBack 1
    [CSG-bgp] peer 2.2.2.9 label-route-capability
    [CSG-bgp] network 1.1.1.9 32
    [CSG-bgp] quit

    # 配置AGG。

    [AGG] bgp 100
    [AGG-bgp] peer 1.1.1.9 as-number 100
    [AGG-bgp] peer 1.1.1.9 connect-interface LoopBack 1
    [AGG-bgp] peer 1.1.1.9 label-route-capability
    [AGG-bgp] peer 3.3.3.9 as-number 100
    [AGG-bgp] peer 3.3.3.9 connect-interface LoopBack 1
    [AGG-bgp] peer 3.3.3.9 label-route-capability
    [AGG-bgp] quit

    # 配置Core_ABR。

    [Core_ABR] bgp 100
    [Core_ABR-bgp] peer 2.2.2.9 as-number 100
    [Core_ABR-bgp] peer 2.2.2.9 connect-interface LoopBack 1
    [Core_ABR-bgp] peer 2.2.2.9 label-route-capability
    [Core_ABR-bgp] peer 4.4.4.9 as-number 100
    [Core_ABR-bgp] peer 4.4.4.9 connect-interface LoopBack 1
    [Core_ABR-bgp] peer 4.4.4.9 label-route-capability
    [Core_ABR-bgp] quit

    # 配置MASG。

    [MASG] bgp 100
    [MASG-bgp] peer 3.3.3.9 as-number 100
    [MASG-bgp] peer 3.3.3.9 connect-interface LoopBack 1
    [MASG-bgp] peer 3.3.3.9 label-route-capability
    [MASG-bgp] network 4.4.4.9 32
    [MASG-bgp] quit

  5. 将AGG、Core_ABR设备配置成路由反射器,通过路由反射使CSG和MASG获得对方的Loopback路由

    # 配置AGG。

    [AGG] bgp 100
    [AGG-bgp] peer 1.1.1.9 reflect-client
    [AGG-bgp] peer 1.1.1.9 next-hop-local
    [AGG-bgp] peer 3.3.3.9 reflect-client
    [AGG-bgp] peer 3.3.3.9 next-hop-local
    [AGG-bgp] quit

    # 配置Core_ABR。

    [Core_ABR] bgp 100
    [Core_ABR-bgp] peer 2.2.2.9 reflect-client
    [Core_ABR-bgp] peer 2.2.2.9 next-hop-local
    [Core_ABR-bgp] peer 4.4.4.9 reflect-client
    [Core_ABR-bgp] peer 4.4.4.9 next-hop-local
    [Core_ABR-bgp] quit

  6. 在各个设备上配置路由策略,建立BGP LSP

    # 在CSG上创建路由策略,并向对等体应用路由策略。

    [CSG] route-policy policy1 permit node 1
    [CSG-route-policy] apply mpls-label
    [CSG-route-policy] quit
    [CSG] bgp 100
    [CSG-bgp] peer 2.2.2.9 route-policy policy1 export
    [CSG-bgp] quit

    # 在MASG上创建路由策略,并向对等体应用路由策略。

    [MASG] route-policy policy1 permit node 1
    [MASG-route-policy] apply mpls-label
    [MASG-route-policy] quit
    [MASG] bgp 100
    [MASG-bgp] peer 3.3.3.9 route-policy policy1 export
    [MASG-bgp] quit

    # 在AGG上创建路由策略,并向对等体应用路由策略。

    [AGG] route-policy policy1 permit node 1
    [AGG-route-policy] if-match mpls-label
    [AGG-route-policy] apply mpls-label
    [AGG-route-policy] quit
    [AGG] bgp 100
    [AGG-bgp] peer 1.1.1.9 route-policy policy1 export
    [AGG-bgp] peer 3.3.3.9 route-policy policy1 export
    [AGG-bgp] quit

    # 在Core_ABR上创建路由策略,并向对等体应用路由策略。

    [Core_ABR] route-policy policy1 permit node 1
    [Core_ABR-route-policy] if-match mpls-label
    [Core_ABR-route-policy] apply mpls-label
    [Core_ABR-route-policy] quit
    [Core_ABR] bgp 100
    [Core_ABR-bgp] peer 2.2.2.9 route-policy policy1 export
    [Core_ABR-bgp] peer 4.4.4.9 route-policy policy1 export
    [Core_ABR-bgp] quit

  7. 在CSG和MASG间建立MP-IBGP邻居,使CSG和MASG之间可以传递VPNv4路由

    # 配置CSG。

    [CSG] bgp 100
    [CSG-bgp] peer 4.4.4.9 as-number 100
    [CSG-bgp] peer 4.4.4.9 connect-interface LoopBack 1
    [CSG-bgp] ipv4-family vpnv4
    [CSG-bgp-af-vpnv4] peer 4.4.4.9 enable
    [CSG-bgp-af-vpnv4] quit
    [CSG-bgp] quit

    # 配置MASG。

    [MASG] bgp 100
    [MASG-bgp] peer 1.1.1.9 as-number 100
    [MASG-bgp] peer 1.1.1.9 connect-interface LoopBack 1
    [MASG-bgp] ipv4-family vpnv4
    [MASG-bgp-af-vpnv4] peer 1.1.1.9 enable
    [MASG-bgp-af-vpnv4] quit
    [MASG-bgp] quit

  8. 在CSG和MASG上配置VPN实例,用于保存私网路由

    # 配置CSG。MASG的配置与CSG类似,不再赘述。

    [CSG] ip vpn-instance vpn1
    [CSG-vpn-instance-vpn1] ipv4-family
    [CSG-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1
    [CSG-vpn-instance-vpn1-af-ipv4] vpn-target 1:1
    [CSG-vpn-instance-vpn1-af-ipv4] quit
    [CSG-vpn-instance-vpn1] quit
    [CSG] interface vlanif 400
    [CSG-Vlanif400] ip binding vpn-instance vpn1
    [CSG-Vlanif400] quit
    [CSG] bgp 100
    [CSG-bgp] ipv4-family vpn-instance vpn1
    [CSG-bgp-vpn1] import-route direct
    [CSG-bgp-vpn1] quit
    [CSG-bgp] quit

  9. 检查配置结果

    配置完成后,在CSG或MASG上执行display ip routing-table命令,可以看到到达对方的Loopback地址的路由。

    以CSG的显示为例:

    [CSG] display ip routing-table
    Route Flags: R - relay, D - download to fib
    ------------------------------------------------------------------------------
    Routing Tables: Public
             Destinations : 7        Routes : 7
    
    Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface
    
            1.1.1.9/32  Direct  0    0           D   127.0.0.1       LoopBack1
            2.2.2.9/32  OSPF    10   1           D   172.1.1.2       Vlanif100
            4.4.4.9/32  IBGP    255  0          RD   2.2.2.9         Vlanif100
          127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0
          127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
          172.1.1.0/24  Direct  0    0           D   172.1.1.1       Vlanif100
          172.1.1.1/32  Direct  0    0           D   127.0.0.1       Vlanif100
    

    在CSG或MASG上执行display mpls lsp命令,可以看到LSP的信息。

    以CSG的显示为例:

    [CSG] display mpls lsp
    -------------------------------------------------------------------------------
                     LSP Information: BGP  LSP
    -------------------------------------------------------------------------------
    FEC                In/Out Label  In/Out IF                      Vrf Name
    1.1.1.9/32         1025/NULL     -/-
    4.4.4.9/32         NULL/1027     -/-
    -/32               1026/NULL     -/-                            vpn1
    
    Flag after Out IF: (I) - LSP Is Only Iterated by RLFA
    -------------------------------------------------------------------------------
                     LSP Information: LDP LSP
    -------------------------------------------------------------------------------
    FEC                In/Out Label  In/Out IF                      Vrf Name
    1.1.1.9/32         3/NULL        -/-
    2.2.2.9/32         NULL/3        -/Vlanif100
    2.2.2.9/32         1024/3        -/Vlanif100

配置文件

  • CSG的配置文件

    #
    sysname CSG
    #
    vlan batch 100 400
    #
    ip vpn-instance vpn1
     ipv4-family
      route-distinguisher 100:1
      vpn-target 1:1 export-extcommunity
      vpn-target 1:1 import-extcommunity
    #
    mpls lsr-id 1.1.1.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif100
     ip address 172.1.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif400
     ip binding vpn-instance vpn1
     ip address 10.1.1.1 255.255.255.0
    #
    interface GigabitEthernet1/0/1
     port link-type trunk  
     port trunk allow-pass vlan 100 
    #
    interface GigabitEthernet1/0/2
     port link-type trunk  
     port trunk allow-pass vlan 400 
    #
    interface LoopBack1
     ip address 1.1.1.9 255.255.255.255
    #
    bgp 100
     peer 2.2.2.9 as-number 100
     peer 2.2.2.9 connect-interface LoopBack1
     peer 4.4.4.9 as-number 100
     peer 4.4.4.9 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      network 1.1.1.9 255.255.255.255
      peer 2.2.2.9 enable
      peer 2.2.2.9 route-policy policy1 export
      peer 2.2.2.9 label-route-capability
      peer 4.4.4.9 enable
     #
     ipv4-family vpnv4
      policy vpn-target
      peer 4.4.4.9 enable
     #
     ipv4-family vpn-instance vpn1
      import-route direct
    #
    ospf 1
     area 0.0.0.0
      network 1.1.1.9 0.0.0.0
      network 172.1.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     apply mpls-label
    #
    return
  • AGG的配置文件

    #
    sysname AGG
    #
    vlan batch 100 200
    #
    mpls lsr-id 2.2.2.9
    mpls
    #
    mpls ldp
    #
    isis 1
     network-entity 10.0000.0000.0000.0010.00
    #
    interface Vlanif100
     ip address 172.1.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif200
     ip address 172.2.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls ldp
    #
    interface GigabitEthernet1/0/1
     port link-type trunk  
     port trunk allow-pass vlan 100 
    #
    interface GigabitEthernet2/0/2
     port link-type trunk  
     port trunk allow-pass vlan 200 
    #
    interface LoopBack1
     ip address 2.2.2.9 255.255.255.255
     isis enable 1
    #
    bgp 100
     peer 1.1.1.9 as-number 100
     peer 1.1.1.9 connect-interface LoopBack1
     peer 3.3.3.9 as-number 100
     peer 3.3.3.9 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      peer 1.1.1.9 enable
      peer 1.1.1.9 route-policy policy1 export
      peer 1.1.1.9 reflect-client
      peer 1.1.1.9 next-hop-local
      peer 1.1.1.9 label-route-capability
      peer 3.3.3.9 enable
      peer 3.3.3.9 route-policy policy1 export
      peer 3.3.3.9 reflect-client
      peer 3.3.3.9 next-hop-local
      peer 3.3.3.9 label-route-capability
    #
    ospf 1
     area 0.0.0.0
      network 2.2.2.9 0.0.0.0
      network 172.1.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     if-match mpls-label
     apply mpls-label
    #
    return
  • Core_ABR的配置文件

    #
    sysname Core_ABR
    #
    vlan batch 200 300
    #
    mpls lsr-id 3.3.3.9
    mpls
    #
    mpls ldp
    #
    isis 1
     network-entity 10.0000.0000.0000.0020.00
    #
    interface Vlanif200
     ip address 172.2.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls ldp
    #
    interface Vlanif300
     ip address 172.3.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface GigabitEthernet1/0/1
     port link-type trunk  
     port trunk allow-pass vlan 200 
    #
    interface GigabitEthernet2/0/2
     port link-type trunk
     port trunk allow-pass vlan 300 
    #
    interface LoopBack1
     ip address 3.3.3.9 255.255.255.255
     isis enable 1
    #
    bgp 100
     peer 2.2.2.9 as-number 100
     peer 2.2.2.9 connect-interface LoopBack1
     peer 4.4.4.9 as-number 100
     peer 4.4.4.9 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      peer 2.2.2.9 enable
      peer 2.2.2.9 route-policy policy1 export
      peer 2.2.2.9 reflect-client
      peer 2.2.2.9 next-hop-local
      peer 2.2.2.9 label-route-capability
      peer 4.4.4.9 enable
      peer 4.4.4.9 route-policy policy1 export
      peer 4.4.4.9 reflect-client
      peer 4.4.4.9 next-hop-local
      peer 4.4.4.9 label-route-capability
    #
    ospf 2
     area 0.0.0.0
      network 3.3.3.9 0.0.0.0
      network 172.3.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     if-match mpls-label
     apply mpls-label
    #
    return
  • MASG的配置文件

    #
    sysname MASG
    #
    vlan batch 300 500
    #
    ip vpn-instance vpn1
     ipv4-family
      route-distinguisher 1:1
      vpn-target 1:1 export-extcommunity
      vpn-target 1:1 import-extcommunity
    #
    mpls lsr-id 4.4.4.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif300
     ip address 172.3.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif500
     ip binding vpn-instance vpn1
     ip address 10.2.1.1 255.255.255.0
    #
    interface GigabitEthernet1/0/1
     port link-type trunk  
     port trunk allow-pass vlan 300 
    #
    interface GigabitEthernet1/0/2
     port link-type trunk  
     port trunk allow-pass vlan 500 
    #
    interface LoopBack1
     ip address 4.4.4.9 255.255.255.255
    #
    bgp 100
     peer 1.1.1.9 as-number 100
     peer 1.1.1.9 connect-interface LoopBack1
     peer 3.3.3.9 as-number 100
     peer 3.3.3.9 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      network 4.4.4.9 255.255.255.255
      peer 1.1.1.9 enable
      peer 3.3.3.9 enable
      peer 3.3.3.9 route-policy policy1 export
      peer 3.3.3.9 label-route-capability
     #
     ipv4-family vpnv4
      policy vpn-target
      peer 1.1.1.9 enable
     #
     ipv4-family vpn-instance vpn1
      import-route direct
    #
    ospf 2
     area 0.0.0.0
      network 4.4.4.9 0.0.0.0
      network 172.3.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     apply mpls-label
    #
    return
翻译
下载文档
更新时间:2019-08-20

文档编号:EDOC1000141521

浏览量:8333

下载量:343

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页