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

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

提示

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

升级

CloudEngine 12800 V200R005C00 配置指南-MPLS

本文档介绍了MPLS的配置,具体包括MPLS基础、MPLS LDP配置、MPLS QoS配置、MPLS TE配置和SR-TE配置。

评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置非标签公网BGP路由迭代SR-BE隧道示例

配置非标签公网BGP路由迭代SR-BE隧道示例

组网需求

当用户通过骨干网访问互联网时,如果报文采用IP转发的话,则从用户到骨干网核心设备都需要学习到大量路由,这给骨干网的核心设备带来了很大的负担,影响核心设备的性能。为了解决这个问题,可以在用户的接入设备上配置非标签公网BGP路由或者非标签公网静态路由迭代SR隧道功能,让用户通过隧道转发访问互联网,这样就能解决骨干网的核心设备性能不足,压力过大或者不希望核心设备承载业务等问题。

下面以图6-13为例,介绍配置非标签公网BGP路由迭代SR-BE隧道。

图6-13 非标签公网BGP路由迭代SR-BE隧道组网图

配置思路

采用如下的思路配置非标签公网BGP路由迭代SR-BE隧道:

  1. 配置接口IP地址和IS-IS协议,实现各节点路由可达。

  2. 在各节点使能全局的MPLS,配置Segment Routing,建立SR LSP。

  3. PE之间配置IBGP交换路由信息。

  4. PE上使能非标签公网BGP路由迭代SR-BE隧道。

操作步骤

  1. 配置接口的IP地址。

    # 配置PE1。

    <HUAWEI> system-view
    [~HUAWEI] sysname PE1
    [*HUAWEI] commit
    [~PE1] interface loopback 1
    [*PE1-LoopBack1] ip address 1.1.1.9 32
    [*PE1-LoopBack1] quit
    [*PE1] interface 10ge 1/0/1
    [*PE1-10GE1/0/1] undo portswitch
    [*PE1-10GE1/0/1] ip address 172.1.1.1 24
    [*PE1-10GE1/0/1] quit
    [*PE1] commit

    # 配置P1。

    <HUAWEI> system-view
    [~HUAWEI] sysname P1
    [*HUAWEI] commit
    [~P1] interface loopback 1
    [*P1-LoopBack1] ip address 2.2.2.9 32
    [*P1-LoopBack1] quit
    [*P1] interface 10ge 1/0/1
    [*P1-10GE1/0/1] undo portswitch
    [*P1-10GE1/0/1] ip address 172.1.1.2 24
    [*P1-10GE1/0/1] quit
    [*P1] interface 10ge 1/0/2
    [*P1-10GE1/0/2] undo portswitch
    [*P1-10GE1/0/2] ip address 172.2.1.2 24
    [*P1-10GE1/0/2] quit
    [*P1] commit

    # 配置PE2。

    <HUAWEI> system-view
    [~HUAWEI] sysname PE2
    [*HUAWEI] commit
    [~PE2] interface loopback 1
    [*PE2-LoopBack1] ip address 3.3.3.9 32
    [*PE2-LoopBack1] quit
    [*PE2] interface 10ge 1/0/1
    [*PE2-10GE1/0/1] undo portswitch
    [*PE2-10GE1/0/1] ip address 172.2.1.1 24
    [*PE2-10GE1/0/1] quit
    [*PE2] commit

  2. 在骨干网上配置IGP协议,实现骨干网PE之间的互通。本例中以IS-IS为例进行说明。

    # 配置PE1。

    [~PE1] isis 1
    [*PE1-isis-1] is-level level-1
    [*PE1-isis-1] network-entity 10.0000.0000.0001.00
    [*PE1-isis-1] quit
    [*PE1] commit
    [~PE1] interface loopback 1
    [~PE1-LoopBack1] isis enable 1
    [*PE1-LoopBack1] quit
    [*PE1] interface 10ge 1/0/1
    [*PE1-10GE1/0/1] isis enable 1
    [*PE1-10GE1/0/1] quit
    [*PE1] commit

    # 配置P1。

    [~P1] isis 1
    [*P1-isis-1] is-level level-1
    [*P1-isis-1] network-entity 10.0000.0000.0002.00
    [*P1-isis-1] quit
    [*P1] commit
    [~P1] interface loopback 1
    [~P1-LoopBack1] isis enable 1
    [*P1-LoopBack1] quit
    [*P1] interface 10ge 1/0/1
    [*P1-10GE1/0/1] isis enable 1
    [*P1-10GE1/0/1] quit
    [*P1] interface 10ge 1/0/2
    [*P1-10GE1/0/2] isis enable 1
    [*P1-10GE1/0/2] quit
    [*P1] commit

    # 配置PE2。

    [~PE2] isis 1
    [*PE2-isis-1] is-level level-1
    [*PE2-isis-1] network-entity 10.0000.0000.0003.00
    [*PE2-isis-1] quit
    [*PE2] commit
    [~PE2] interface loopback 1
    [~PE2-LoopBack1] isis enable 1
    [*PE2-LoopBack1] quit
    [*PE2] interface 10ge 1/0/1
    [*PE2-10GE1/0/1] isis enable 1
    [*PE2-10GE1/0/1] quit
    [*PE2] commit

  3. 在骨干网上配置MPLS基本能力

    # 配置PE1。

    [~PE1] mpls lsr-id 1.1.1.9
    [*PE1] mpls
    [*PE1-mpls] commit
    [~PE1-mpls] quit

    # 配置P1。

    [~P1] mpls lsr-id 2.2.2.9
    [*P1] mpls
    [*P1-mpls] commit
    [~P1-mpls] quit

    # 配置PE2。

    [~PE2] mpls lsr-id 3.3.3.9
    [*PE2] mpls
    [*PE2-mpls] commit
    [~PE2-mpls] quit

  4. 在骨干网上配置Segment Routing

    # 配置PE1。

    [~PE1] segment-routing
    [*PE1-segment-routing] tunnel-prefer segment-routing
    [*PE1-segment-routing] quit
    [*PE1] commit
    [~PE1] isis 1
    [~PE1-isis-1] cost-style wide
    [*PE1-isis-1] segment-routing mpls
    [*PE1-isis-1] segment-routing global-block 160000 161000
    [*PE1-isis-1] quit
    说明:

    SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。

    [*PE1] interface loopback 1
    [*PE1-LoopBack1] isis prefix-sid index 10
    [*PE1-LoopBack1] quit
    [*PE1] commit

    # 配置P1。

    [~P1] segment-routing
    [*P1-segment-routing] tunnel-prefer segment-routing
    [*P1-segment-routing] quit
    [*P1] commit
    [~P1] isis 1
    [~P1-isis-1] cost-style wide
    [*P1-isis-1] segment-routing mpls
    [*P1-isis-1] segment-routing global-block 161001 162000
    [*P1-isis-1] quit
    说明:

    SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。

    [*P1] interface loopback 1
    [*P1-LoopBack1] isis prefix-sid index 20
    [*P1-LoopBack1] quit
    [*P1] commit

    # 配置PE2。

    [~PE2] segment-routing
    [*PE2-segment-routing] tunnel-prefer segment-routing
    [*PE2-segment-routing] quit
    [*PE2] commit
    [~PE2] isis 1
    [~PE2-isis-1] cost-style wide
    [*PE2-isis-1] segment-routing mpls
    [*PE2-isis-1] segment-routing global-block 162001 163000
    [*PE2-isis-1] quit
    说明:

    SRGB取值范围动态变化,具体以设备的实际情况为准。此处仅做示例。

    [*PE2] interface loopback 1
    [*PE2-LoopBack1] isis prefix-sid index 30
    [*PE2-LoopBack1] quit
    [*PE2] commit

    配置完成后,在PE设备上执行display segment-routing prefix mpls forwarding命令,可以查看前缀标签的状态为Active。以PE1的显示为例。

    [~PE1] display segment-routing prefix mpls forwarding
                                                                                    
                       Segment Routing Prefix MPLS Forwarding Information           
                 --------------------------------------------------------------     
                 Role : I-Ingress, T-Transit, E-Egress, I&T-Ingress And Transit     
                                                                                    
    Prefix             Label      OutLabel   Interface         NextHop          Role  MPLSMtu   Mtu       State
    --------------------------------------------------------------------------------------------------------------
    1.1.1.9/32         160010     NULL       Loop1             127.0.0.1        E     ---       1500      Active
    2.2.2.9/32         160020     3          10GE1/0/1         172.1.1.2        I&T   ---       1500      Active
    3.3.3.9/32         160030     161031     10GE1/0/1         172.1.1.2        I&T   ---       1500      Active
                                                                                    
    Total information(s): 3

  5. 在PE之间建立IBGP对等体关系

    # 配置PE1。

    [~PE1] bgp 100
    [*PE1-bgp] peer 3.3.3.9 as-number 100
    [*PE1-bgp] peer 3.3.3.9 connect-interface loopback 1
    [*PE1-bgp] commit
    [~PE1-bgp] quit

    # 配置PE2。

    [~PE2] bgp 100
    [*PE2-bgp] peer 1.1.1.9 as-number 100
    [*PE2-bgp] peer 1.1.1.9 connect-interface loopback 1
    [*PE2-bgp] commit
    [~PE2-bgp] quit

    配置完成后,在PE设备上执行display bgp peer命令,可以看到PE之间的BGP对等体关系已建立,并达到Established状态。以PE1的显示为例。

    [~PE1] display bgp peer
     BGP local router ID : 1.1.1.9
     Local AS number : 100
     Total number of peers : 1         
     Peers in established state : 1
      Peer            V    AS  MsgRcvd  MsgSent     OutQ  Up/Down    State        PrefRcv
      3.3.3.9         4   100        2        6     0     00:00:12   Established   0

  6. 在PE设备上使能非标签公网BGP路由迭代SR-BE隧道

    # 配置PE1。

    [~PE1] tunnel-policy p1
    [*PE1-tunnel-policy-p1] tunnel select-seq sr-lsp load-balance-number 1
    [*PE1-tunnel-policy-p1] quit
    [*PE1] route recursive-lookup tunnel tunnel-policy p1
    [*PE1] commit

    # 配置PE2。

    [~PE2] tunnel-policy p1
    [*PE2-tunnel-policy-p1] tunnel select-seq sr-lsp load-balance-number 1
    [*PE2-tunnel-policy-p1] quit
    [*PE2] route recursive-lookup tunnel tunnel-policy p1
    [*PE2] commit

配置文件

  • PE1的配置文件

    #
    sysname PE1
    #
    mpls lsr-id 1.1.1.9
    #               
    mpls            
    #               
    segment-routing 
     tunnel-prefer segment-routing
    #               
    isis 1          
     is-level level-1
     cost-style wide
     network-entity 10.0000.0000.0001.00
     segment-routing mpls
     segment-routing global-block 160000 161000
    #               
    interface 10GE1/0/1
     undo portswitch
     ip address 172.1.1.1 255.255.255.0
     isis enable 1  
    #               
    interface LoopBack1
     ip address 1.1.1.9 255.255.255.255
     isis enable 1  
     isis prefix-sid index 10
    #               
    bgp 100         
     peer 3.3.3.9 as-number 100
     peer 3.3.3.9 connect-interface LoopBack1
     #              
     ipv4-family unicast
      peer 3.3.3.9 enable
    #
    route recursive-lookup tunnel tunnel-policy p1
    #
    tunnel-policy p1
     tunnel select-seq sr-lsp load-balance-number 1
    #
    return
  • P1的配置文件

    #
    sysname P1
    #
    mpls lsr-id 2.2.2.9
    #               
    mpls            
    #               
    segment-routing 
     tunnel-prefer segment-routing
    #               
    isis 1          
     is-level level-1
     cost-style wide
     network-entity 10.0000.0000.0002.00
     segment-routing mpls
     segment-routing global-block 161001 162000
    #               
    interface 10GE1/0/1
     undo portswitch
     ip address 172.1.1.2 255.255.255.0
     isis enable 1  
    #               
    interface 10GE1/0/2
     undo portswitch
     ip address 172.2.1.2 255.255.255.0
     isis enable 1  
    #               
    interface LoopBack1
     ip address 2.2.2.9 255.255.255.255
     isis enable 1  
     isis prefix-sid index 20
    #
    return
  • PE2的配置文件

    #
    sysname PE2
    #
    mpls lsr-id 3.3.3.9
    #               
    mpls            
    #               
    segment-routing 
     tunnel-prefer segment-routing
    #               
    isis 1          
     is-level level-1
     cost-style wide
     network-entity 10.0000.0000.0003.00
     segment-routing mpls
     segment-routing global-block 162001 163000
    #               
    interface 10GE1/0/1
     undo portswitch
     ip address 172.2.1.1 255.255.255.0
     isis enable 1  
    #               
    interface LoopBack1
     ip address 3.3.3.9 255.255.255.255
     isis enable 1  
     isis prefix-sid index 30
    #               
    bgp 100         
     peer 1.1.1.9 as-number 100
     peer 1.1.1.9 connect-interface LoopBack1
     #              
     ipv4-family unicast
      peer 1.1.1.9 enable
    #
    route recursive-lookup tunnel tunnel-policy p1
    #
    tunnel-policy p1
     tunnel select-seq sr-lsp load-balance-number 1
    #
    return
翻译
下载文档
更新时间:2019-04-19

文档编号:EDOC1100039798

浏览量:19627

下载量:270

平均得分:
本文档适用于这些产品

相关版本

相关文档

Share
上一页 下一页