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

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

提示

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

升级

S7700, S9700 V200R010C00 配置指南-可靠性

本文档针对设备可靠性业务,主要包括BFD配置、DLDP配置、VRRP配置、Smart Link和Monitor Link配置、EFM配置、CFM配置、Y.1731配置和MAC Swap配置。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置CFM和接口联动示例

配置CFM和接口联动示例

组网需求

在如图9-20所示的网络中,用户网络通过SwitchA和SwitchB接入到ISP网络中。其中SwitchA是CE设备,SwitchB是UPE设备。用户希望实现以下需求:

  • 用户网络到ISP网络的接入带宽为2000Mbit/s,并需要提供备份接入链路。

  • 在用户网络和ISP网络之间的工作链路出现故障时,LACP(Link Aggregation Control Protocol)感知到该故障,并停止通过该工作链路转发数据。

图9-20  配置CFM和接口联动示例组网图

配置思路

采用如下的思路配置LACP模式链路聚合组快速故障检测功能:

  • 在SwitchA和SwitchB上分别配置包括3个成员接口的LACP模式链路聚合组,增加带宽,实现冗余备份,提高可靠性。

  • 在SwitchA和SwitchB上分别配置以太网CFM功能,将各MA内发送和探测CCM消息的时间间隔配置为100ms,实现快速感知到连通性故障的要求。

  • 在SwitchA和SwitchB上分别配置LACP模式链路聚合组成员接口和以太网CFM联动功能,实现LACP聚合组成员接口能够快速感知链路故障。

操作步骤

  1. 在SwitchA上创建Eth-Trunk1并配置为LACP模式。SwitchB的配置与SwitchA相同,详见配置文件

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] interface eth-trunk 1
    [SwitchA-Eth-Trunk1] mode lacp
    [SwitchA-Eth-Trunk1] quit

  2. 配置SwitchA上的成员接口加入Eth-Trunk。SwitchB的配置与SwitchA相同,详见配置文件

    [SwitchA] interface gigabitethernet 1/0/1
    [SwitchA-GigabitEthernet1/0/1] eth-trunk 1
    [SwitchA-GigabitEthernet1/0/1] quit
    [SwitchA] interface gigabitethernet 1/0/2
    [SwitchA-GigabitEthernet1/0/2] eth-trunk 1
    [SwitchA-GigabitEthernet1/0/2] quit
    [SwitchA] interface gigabitethernet 1/0/3
    [SwitchA-GigabitEthernet1/0/3] eth-trunk 1
    [SwitchA-GigabitEthernet1/0/3] quit
    

  3. 在SwitchA上配置系统优先级为100,使其成为LACP主动端

    [SwitchA] lacp priority 100

  4. 在SwitchA上配置活动接口上限阈值为2

    [SwitchA] interface eth-trunk 1
    [SwitchA-Eth-Trunk1] max active-linknumber 2
    [SwitchA-Eth-Trunk1] quit

  5. 在SwitchA上配置接口优先级确定活动链路

    [SwitchA] interface gigabitethernet 1/0/1
    [SwitchA-GigabitEthernet1/0/1] lacp priority 100
    [SwitchA-GigabitEthernet1/0/1] quit
    [SwitchA] interface gigabitethernet 1/0/2
    [SwitchA-GigabitEthernet1/0/2] lacp priority 100
    [SwitchA-GigabitEthernet1/0/2] quit
    

  6. 配置以太网CFM功能

    # 在SwitchA上全局使能以太网CFM。

    [SwitchA] cfm enable

    # 在SwitchA上创建MD、MA、MEP和RMEP

    [SwitchA] cfm md md1
    [SwitchA-md-md1] ma ma1
    [SwitchA-md-md1-ma-ma1] ccm-interval 100
    [SwitchA-md-md1-ma-ma1] mep mep-id 2 interface gigabitethernet 1/0/1 outward
    [SwitchA-md-md1-ma-ma1] remote-mep mep-id 1
    [SwitchA-md-md1-ma-ma1] mep ccm-send enable
    [SwitchA-md-md1-ma-ma1] remote-mep ccm-receive enable
    [SwitchA-md-md1-ma-ma1] quit
    [SwitchA-md-md1] ma ma2
    [SwitchA-md-md1-ma-ma2] ccm-interval 100
    [SwitchA-md-md1-ma-ma2] mep mep-id 4 interface gigabitethernet 1/0/2 outward
    [SwitchA-md-md1-ma-ma2] remote-mep mep-id 3
    [SwitchA-md-md1-ma-ma2] mep ccm-send enable
    [SwitchA-md-md1-ma-ma2] remote-mep ccm-receive enable
    [SwitchA-md-md1-ma-ma2] quit
    [SwitchA-md-md1] ma ma3
    [SwitchA-md-md1-ma-ma3] ccm-interval 100
    [SwitchA-md-md1-ma-ma3] mep mep-id 6 interface gigabitethernet 1/0/3 outward
    [SwitchA-md-md1-ma-ma3] remote-mep mep-id 5
    [SwitchA-md-md1-ma-ma3] mep ccm-send enable
    [SwitchA-md-md1-ma-ma3] remote-mep ccm-receive enable
    [SwitchA-md-md1-ma-ma3] quit
    [SwitchA-md-md1] quit

    # 在SwitchB上全局使能以太网CFM。

    [SwitchB] cfm enable

    # 在SwitchB上创建MD、MA、MEP和RMEP

    [SwitchB] cfm md md1
    [SwitchB-md-md1] ma ma1
    [SwitchB-md-md1-ma-ma1] ccm-interval 100
    [SwitchB-md-md1-ma-ma1] mep mep-id 1 interface gigabitethernet 1/0/1 outward
    [SwitchB-md-md1-ma-ma1] remote-mep mep-id 2
    [SwitchB-md-md1-ma-ma1] mep ccm-send enable
    [SwitchB-md-md1-ma-ma1] remote-mep ccm-receive enable
    [SwitchB-md-md1-ma-ma1] quit
    [SwitchB-md-md1] ma ma2
    [SwitchB-md-md1-ma-ma2] ccm-interval 100
    [SwitchB-md-md1-ma-ma2] mep mep-id 3 interface gigabitethernet 1/0/2 outward
    [SwitchB-md-md1-ma-ma2] remote-mep mep-id 4
    [SwitchB-md-md1-ma-ma2] mep ccm-send enable
    [SwitchB-md-md1-ma-ma2] remote-mep ccm-receive enable
    [SwitchB-md-md1-ma-ma2] quit
    [SwitchB-md-md1] ma ma3
    [SwitchB-md-md1-ma-ma3] ccm-interval 100
    [SwitchB-md-md1-ma-ma3] mep mep-id 5 interface gigabitethernet 1/0/3 outward
    [SwitchB-md-md1-ma-ma3] remote-mep mep-id 6
    [SwitchB-md-md1-ma-ma3] mep ccm-send enable
    [SwitchB-md-md1-ma-ma3] remote-mep ccm-receive enable
    [SwitchB-md-md1-ma-ma3] quit
    [SwitchB-md-md1] quit

    # 检查配置结果。

    SwitchA和SwitchB上的以太网CFM功能配置成功后,在SwitchA或SwitchB上执行display cfm mep命令和display cfm remote-mep命令,显示结果如下:

    [SwitchA] display cfm mep md md1
    The total number of MEPs is : 3
    --------------------------------------------------
     MD Name            : md1                                                       
     MD Name Format     : string                                                    
     Level              : 0                                                         
     MA Name            : ma1                                                       
     MEP ID             : 2                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     Interface Name     : GigabitEthernet1/0/1
     CCM Send           : enabled                                                   
     Direction          : outward                                                   
     MAC Address        : 0009-c000-5e09                                            
     MEP Pe-vid         : --                                                        
     MEP Ce-vid         : --                                                        
     MEP Vid            : --                                                        
     Alarm Status       : none                                                       
     Alarm AIS          : enabled                                                   
     Alarm RDI          : enabled
    
     MD Name            : md1                                                       
     MD Name Format     : string                                                    
     Level              : 0                                                         
     MA Name            : ma2                                                       
     MEP ID             : 4                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     Interface Name     : GigabitEthernet1/0/2                                      
     CCM Send           : enabled                                                   
     Direction          : outward                                                   
     MAC Address        : 0009-c000-5e09                                            
     MEP Pe-vid         : --                                                        
     MEP Ce-vid         : --                                                        
     MEP Vid            : --                                                        
     Alarm Status       : none                                                       
     Alarm AIS          : enabled                                                   
     Alarm RDI          : enabled
    
     MD Name            : md1                                                       
     MD Name Format     : string                                                    
     Level              : 0                                                         
     MA Name            : ma3                                                       
     MEP ID             : 6                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     Interface Name     : GigabitEthernet1/0/3                                      
     CCM Send           : enabled                                                   
     Direction          : outward                                                   
     MAC Address        : 0009-c000-5e09                                            
     MEP Pe-vid         : --                                                        
     MEP Ce-vid         : --                                                        
     MEP Vid            : --                                                        
     Alarm Status       : none                                                       
     Alarm AIS          : enabled                                                   
     Alarm RDI          : enabled
    [SwitchB] display cfm remote-mep md md1
    The total number of RMEPs is : 3
    The status of RMEPs : 3 up, 0 down, 0 disable
    --------------------------------------------------
     MD Name            : md1                                                       
     Level              : 0                                                         
     MA Name            : ma1                                                       
     RMEP ID            : 2                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     MAC                : 0009-c000-5e09                                            
     CCM Receive        : enabled                                                   
     Trigger-If-Down    : disabled                                                  
     CFM Status         : up                                                        
     Alarm Status       : none                                                       
     Interface TLV      : -- 
     Connect Status     : up
    
     MD Name            : md1                                                       
     Level              : 0                                                         
     MA Name            : ma2                                                       
     RMEP ID            : 4                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     MAC                : 0009-c000-5e09                                            
     CCM Receive        : enabled                                                   
     Trigger-If-Down    : disabled                                                  
     CFM Status         : up                                                        
     Alarm Status       : none                                                       
     Interface TLV      : -- 
     Connect Status     : up
    
     MD Name            : md1                                                       
     Level              : 0                                                         
     MA Name            : ma3                                                       
     RMEP ID            : 6                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     MAC                : 0009-c000-5e09                                            
     CCM Receive        : enabled                                                   
     Trigger-If-Down    : disabled                                                  
     CFM Status         : up                                                        
     Alarm Status       : none                                                       
     Interface TLV      : -- 
     Connect Status     : up

  7. 配置静态LACP聚合组成员接口和以太网CFM联动功能

    # 在SwitchA上配置Eth-Trunk2的成员接口和以太网CFM联动。

    [SwitchA] interface gigabitethernet 1/0/1
    [SwitchA-GigabitEthernet1/0/1] cfm md md1 ma ma1 remote-mep mep-id 1 trigger if-down
    [SwitchA-GigabitEthernet1/0/1] quit
    [SwitchA] interface gigabitethernet 1/0/2
    [SwitchA-GigabitEthernet1/0/2] cfm md md1 ma ma2 remote-mep mep-id 3 trigger if-down
    [SwitchA-GigabitEthernet1/0/2] quit
    [SwitchA] interface gigabitethernet 1/0/3
    [SwitchA-GigabitEthernet1/0/3] cfm md md1 ma ma3 remote-mep mep-id 5 trigger if-down
    [SwitchA-GigabitEthernet1/0/3] quit

    # 在SwitchB上配置Eth-Trunk2的成员接口和以太网CFM联动。

    [SwitchB] interface gigabitethernet 1/0/1
    [SwitchB-GigabitEthernet1/0/1] cfm md md1 ma ma1 remote-mep mep-id 2 trigger if-down
    [SwitchB-GigabitEthernet1/0/1] quit
    [SwitchB] interface gigabitethernet 1/0/2
    [SwitchB-GigabitEthernet1/0/2] cfm md md1 ma ma2 remote-mep mep-id 4 trigger if-down
    [SwitchB-GigabitEthernet1/0/2] quit
    [SwitchB] interface gigabitethernet 1/0/3
    [SwitchB-GigabitEthernet1/0/3] cfm md md1 ma ma3 remote-mep mep-id 6 trigger if-down
    [SwitchB-GigabitEthernet1/0/3] quit

    # 检查配置结果。

    配置接口和以太网CFM联动功能成功后,在SwitchA或SwitchB上执行display cfm remote-mep命令,在显示信息中Trigger-If-down项目的值应为enabled。例如:

    [SwitchA] display cfm remote-mep md md1
    The total number of RMEPs is : 3
    The status of RMEPs : 3 up, 0 down, 0 disable
    --------------------------------------------------
     MD Name            : md1                                                       
     Level              : 0                                                         
     MA Name            : ma1                                                       
     RMEP ID            : 1                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     MAC                : 0008-c000-5e08                                            
     CCM Receive        : enabled                                                   
     Trigger-If-Down    : enabled                                                  
     CFM Status         : up                                                        
     Alarm Status       : none                                                       
     Interface TLV      : -- 
     Connect Status     : up
    
     MD Name            : md1                                                       
     Level              : 0                                                         
     MA Name            : ma2                                                       
     RMEP ID            : 3                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     MAC                : 0008-c000-5e08                                            
     CCM Receive        : enabled                                                   
     Trigger-If-Down    : enabled                                                  
     CFM Status         : up                                                        
     Alarm Status       : none                                                       
     Interface TLV      : -- 
     Connect Status     : up
    
     MD Name            : md1                                                       
     Level              : 0                                                         
     MA Name            : ma3                                                       
     RMEP ID            : 5                                                         
     VLAN ID            : --                                                        
     VSI Name           : --                                                        
     L2VC ID            : --                                                        
     MAC                : 0008-c000-5e08                                            
     CCM Receive        : enabled                                                   
     Trigger-If-Down    : enabled                                                  
     CFM Status         : up                                                        
     Alarm Status       : none                                                       
     Interface TLV      : -- 
     Connect Status     : up

配置文件

  • SwitchA的配置文件

    #
    sysname SwitchA
    #
    lacp priority 100
    #
    cfm enable
    #
    interface Eth-Trunk1
     mode lacp
     max active-linknumber 2
    #
    interface GigabitEthernet1/0/1
     eth-trunk 1
     lacp priority 100
     cfm md md1 ma ma1 remote-mep mep-id 1 trigger if-down
    #
    interface GigabitEthernet1/0/2
     eth-trunk 1
     lacp priority 100
     cfm md md1 ma ma2 remote-mep mep-id 3 trigger if-down
    #
    interface GigabitEthernet1/0/3
     eth-trunk 1
     cfm md md1 ma ma3 remote-mep mep-id 5 trigger if-down
    #
    cfm md md1
     ma ma1
      ccm-interval 100
      mep mep-id 2 interface GigabitEthernet1/0/1 outward
      mep ccm-send mep-id 2 enable
      remote-mep mep-id 1
      remote-mep ccm-receive mep-id 1 enable
     ma ma2
      ccm-interval 100
      mep mep-id 4 interface GigabitEthernet1/0/2 outward
      mep ccm-send mep-id 4 enable
      remote-mep mep-id 3
      remote-mep ccm-receive mep-id 3 enable
     ma ma3
      ccm-interval 100
      mep mep-id 6 interface GigabitEthernet1/0/3 outward
      mep ccm-send mep-id 6 enable
      remote-mep mep-id 5
      remote-mep ccm-receive mep-id 5 enable
    #
    return
  • SwitchB的配置文件

    #
    sysname SwitchB
    #
    cfm enable
    #
    interface Eth-Trunk1
     mode lacp
    #
    interface GigabitEthernet1/0/1
     eth-trunk 1
     cfm md md1 ma ma1 remote-mep mep-id 2 trigger if-down
    #
    interface GigabitEthernet1/0/2
     eth-trunk 1
     cfm md md1 ma ma2 remote-mep mep-id 4 trigger if-down
    #
    interface GigabitEthernet1/0/3
     eth-trunk 1
     cfm md md1 ma ma3 remote-mep mep-id 6 trigger if-down
    #
    cfm md md1
     ma ma1
      ccm-interval 100
      mep mep-id 1 interface GigabitEthernet1/0/1 outward
      mep ccm-send mep-id 1 enable
      remote-mep mep-id 2
      remote-mep ccm-receive mep-id 2 enable
     ma ma2
      ccm-interval 100
      mep mep-id 3 interface GigabitEthernet1/0/2 outward
      mep ccm-send mep-id 3 enable
      remote-mep mep-id 4
      remote-mep ccm-receive mep-id 4 enable
     ma ma3
      ccm-interval 100
      mep mep-id 5 interface GigabitEthernet1/0/3 outward
      mep ccm-send mep-id 5 enable
      remote-mep mep-id 6
      remote-mep ccm-receive mep-id 6 enable
    #
    return
翻译
下载文档
更新时间:2019-04-18

文档编号:EDOC1000141468

浏览量:8864

下载量:784

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