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

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

提示

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

升级

CloudEngine 12800 V200R005C00 配置指南-MPLS

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

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

配置SR-BE隧道示例

组网需求

图6-11所示,各设备间运行IS-IS协议,Segment Routing要求每台设备发布SR能力和支持的SR标签范围(SRGB),而且发布端需要发布SRGB范围内的偏移值Prefix SID,接收端计算标签转发路径,生成隧道转发表项。

图6-11 配置SR-BE隧道组网图

配置思路

采用如下的思路配置SR-BE隧道:

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

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

操作步骤

  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.1 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.2 24
    [*PE2-10GE1/0/1] quit
    [*PE2] commit

  2. 配置IGP协议,实现骨干网PE和P1的互通。本例中以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

配置文件

  • 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
    #
    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.1 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 10.2.1.2 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
    #
    return
翻译
下载文档
更新时间:2019-04-19

文档编号:EDOC1100039798

浏览量:19769

下载量:272

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

相关版本

相关文档

Share
上一页 下一页