No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuration Examples

Configuration Examples

This section provides several examples showing how to configure EFM functions in different scenarios. In each configuration example, the networking requirements, configuration roadmap, and configuration files are provided.

Example for Configuring Basic EFM Functions

Networking Requirements

As networks develop quickly, more and more IP networks are used to carry multiple services such as voice and video services. These services pose high requirements on network reliability and rapid fault detection.

As shown in Figure 11-99, the network between SwitchA and Router is newly deployed. The requirements on the network are as follows:
  • Link connectivity and quality on the network are tested before the network is started.

  • Link quality is dynamically monitored after links are properly started.

Figure 11-99 Networking diagram for configuring basic EFM functions
Configuration Roadmap
The configuration roadmap is as follows:
  1. Configure basic EFM functions on SwitchA and SwitchB to monitor link connectivity.

  2. Configure remote loopback on SwitchA to test the connectivity and performance of the link between SwitchA and SwitchB before the link is used to transmit services.

  3. Configure link monitoring on SwitchA to monitor the performance and quality of the link between SwitchA and SwitchB.

  4. Configure association between EFM and interfaces on SwitchB. When the link between SwitchA and SwitchB becomes faulty, traffic sent from SwitchB will not be sent along the link.

Procedure

  1. Configure basic EFM functions.

    # Enable EFM on SwitchA globally.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] efm enable
    [*SwitchA] commit

    # Enable EFM on 10GE1/17/1 of SwitchA.

    [~SwitchA] interface 10ge 1/17/1
    [~SwitchA-10GE1/17/1] efm enable
    [*SwitchA-10GE1/17/1] commit
    [~SwitchA-10GE1/17/1] quit

    # Enable EFM on SwitchB globally.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchB
    [*HUAWEI] commit
    [~SwitchB] efm enable
    [*SwitchB] commit

    # Configure the EFM mode to passive on 10GE1/17/1 of SwitchB.

    [~SwitchB] interface 10ge 1/17/1
    [~SwitchB-10GE1/17/1] efm mode passive

    # Enable EFM on 10GE1/17/1 of SwitchB.

    [*SwitchB-10GE1/17/1] efm enable
    [*SwitchB-10GE1/17/1] commit
    [~SwitchB-10GE1/17/1] quit

    # Verify the configuration.

    If EFM is correctly configured on SwitchA and SwitchB, 10GE1/17/1 will enter the handshake phase. Run the display efm session { all | interface interface-type interface-number } command on SwitchA or SwitchB. The command output shows that the EFM status is detect on 10GE1/17/1.

    [~SwitchA] display efm session all
      Interface                 EFM State                   Loopback Timeout        
      ----------------------------------------------------------------------        
      10GE1/17/1                 detect                      --               

  2. Configure remote loopback.

    # Configure remote loopback on SwitchA.

    [~SwitchA] interface 10ge 1/17/1
    [~SwitchA-10GE1/17/1] efm loopback start
    [~SwitchA-10GE1/17/1] quit

    Verify the configuration.

    After configuring remote loopback, run the display efm session { all | interface interface-type interface-number } command on SwitchA. The command output shows that the EFM status is loopback (control) on 10GE1/17/1.

    [~SwitchA] display efm session interface 10ge 1/17/1
      Interface                 EFM State                   Loopback Timeout        
      ----------------------------------------------------------------------        
      10GE1/17/1                 loopback (control)          20               

    After configuring remote loopback, run the display efm session { all | interface interface-type interface-number } command on SwitchB. The command output shows that the EFM status is loopback (be controlled) on 10GE1/17/1.

    [~SwitchB] display efm session interface 10ge 1/17/1
      Interface                 EFM State                   Loopback Timeout        
      ----------------------------------------------------------------------        
      10GE1/17/1                 loopback (be controlled)    --              

  3. Configure SwitchA to send test packets to SwitchB.

    [~SwitchA] efm test-packet start interface 10ge 1/17/1
    Please wait...done.
    Info: The test is completed.

  4. Check returned test packets on SwitchA.

    [~SwitchA] display efm test-packet result
      TestResult         Value
    --------------------------------------------------------
      PacketsSend    :   5
      PacketsReceive :   5
      PacketsLost    :   0
      BytesSend      :   480
      BytesReceive   :   480
      BytesLost      :   0
      StartTime      :   Oct 10 2013 13:44:47
      EndTime        :   Oct 10 2013 13:44:48

    Link quality can be evaluated based on data in the preceding command output.

  5. Disable remote loopback.

    [~SwitchA] interface 10ge 1/17/1
    [~SwitchA-10GE1/17/1] efm loopback stop
    [~SwitchA-10GE1/17/1] quit
    NOTE:

    Disable remote loopback before the link is used; otherwise, traffic cannot be forwarded.

    By default, the timeout interval for remote loopback is 20 minutes. The remote loopback test stops after 20 minutes. To disable remote loopback, perform the preceding procedures.

  6. Verify the configuration.

    After disabling remote loopback, run the display efm session { all | interface interface-type interface-number } command on SwitchA or SwitchB. The command output shows that the EFM status is detect on the interfaces at both ends of the link. For example:

    [~SwitchA] display efm session all
      Interface                 EFM State                   Loopback Timeout        
      ----------------------------------------------------------------------        
      10GE1/17/1                 detect                      --               

    If the link is working properly, perform the following operations to monitor the link in real time.

  7. Configure errored code detection, errored frame detection, and errored frame second detection on 10GE1/17/1 of SwitchA.

    # Configure errored frame detection on 10GE1/17/1 of SwitchA.

    [~SwitchA] interface 10ge 1/17/1
    [~SwitchA-10GE1/17/1] efm error-frame period 5
    [*SwitchA-10GE1/17/1] efm error-frame threshold 5
    [*SwitchA-10GE1/17/1] efm error-frame notification enable

    # Configure errored code detection on 10GE1/17/1 of SwitchA.

    [*SwitchA-10GE1/17/1] efm error-code period 5
    [*SwitchA-10GE1/17/1] efm error-code threshold 5
    [*SwitchA-10GE1/17/1] efm error-code notification enable

    # Configure errored frame second detection on 10GE1/17/1 of SwitchA.

    [*SwitchA-10GE1/17/1] efm error-frame-second period 120
    [*SwitchA-10GE1/17/1] efm error-frame-second threshold 5
    [*SwitchA-10GE1/17/1] efm error-frame-second notification enable
    [*SwitchA-10GE1/17/1] commit
    [~SwitchA-10GE1/17/1] quit

  8. Verify the configuration.

    After the preceding configurations are complete, 10GE1/17/1 on SwitchA and 10GE1/17/1 on SwitchB will enter the handshake phase. Run the display efm session { all | interface interface-type interface-number } command on SwitchA or SwitchB. The command output shows that the EFM status is detect on 10GE1/17/1.

    [~SwitchA] display efm session interface 10ge 1/17/1
      Interface                 EFM State                   Loopback Timeout        
      ----------------------------------------------------------------------        
      10GE1/17/1                 detect                      --               

    After the preceding configurations are complete, run the display efm { all | interface interface-type interface-number } command to check EFM configurations.

    [~SwitchA] display efm interface 10ge 1/17/1
        Item                           Value
        ----------------------------------------------------
        Interface:                     10GE1/17/1
        EFM Enable Flag:               enable
        Mode:                      active
        Loopback IgnoreRequest:    no
        OAMPDU MaxSize:                128
        OAMPDU Timeout:                5000  
        OAMPDU Interval:               1000
        Parser:                        forward
        Multiplexer:                   forward
        ErrCodeNotification:       enable
        ErrCodePeriod:             5
        ErrCodeThreshold:          5
        ErrFrameNotification:      enable
        ErrFramePeriod:            5
        ErrFrameThreshold:         5
        ErrFrameSecondNotification:enable
        ErrFrameSecondPeriod:      120
        ErrFrameSecondThreshold:   5
        Hold Up Time:                  0
        TriggerIfDown:                 disable
        Remote MAC:                    0010-0010-0010
        Remote EFM Enable Flag:        enable
        Remote Mode:                   passive
        Remote  MaxSize:               128
        Remote Loopback IgnoreRequest: no  
        Remote Parser:                 forward                                        
        Remote Multiplexer:            forward

  9. Configure association between EFM and 10GE1/17/1 on SwitchA.

    [~SwitchA] interface 10ge 1/17/1
    [~SwitchA-10GE1/17/1] efm trigger if-down
    [*SwitchA-10GE1/17/1] commit
    [*SwitchA-10GE1/17/1] quit

  10. Verify the configuration.

    After the preceding configurations are complete, run the undo efm enable command on 10GE1/17/1 of SwitchB. The command output shows that the Line protocol current state field value is DOWN (EFM down) on 10GE1/17/1 of SwitchA.

    [~SwitchA] display interface 10ge 1/17/1
    10GE1/17/1 current state : UP (ifindex: 13)                                      
    Line protocol current state : DOWN (EFM down)                                   
    Description:                                                                    
    Switch Port, PVID :    1, TPID : 8100(Hex), The Maximum Frame Length is 9216    
    Internet protocol processing : disabled                                         
    IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9e01-0204 
    Port Mode:   COMMON FIBER,     Port Split: -                                    
    Speed :             10000,     Loopback: NONE                                   
    Duplex:              FULL,     Negotiation: DISABLE                             
    Mdi   :                 -                                                       
    Last physical up time   : 2013-10-10 14:17:39                                   
    Last physical down time : 2013-10-10 14:12:00                                   
    Current system time: 2013-10-10 14:19:20                                        
    Statistics last cleared:never                                                   
        Last 300 seconds input rate: 323 bits/sec, 0 packets/sec                    
        Last 300 seconds output rate: 281747 bits/sec, 502 packets/sec              
        Input peak rate 836 bits/sec, Record time: 2013-10-10 13:46:52              
        Output peak rate 977744 bits/sec, Record time: 2013-10-10 11:59:46          
        Input :             595190 bytes,               7031 packets                
        Output:          816679442 bytes,           11663001 packets                
        Input:                                                                      
          Unicast:                      0,   Multicast:                    7031     
          Broadcast:                    0,   Jumbo:                           0     
          Discard:                      0,   Total Error:                     0     
                                                                                    
          CRC:                          0,   Giants:                          0     
          Jabbers:                      0,   Fragments:                       0     
          Runts:                        0,   DropEvents:                      0     
          Alignments:                   0,   Symbols:                         0     
          Ignoreds:                     0,   Frames:                          0     
                                                                                    
        Output:                                                                     
          Unicast:                      0,   Multicast:                11663001     
          Broadcast:                    0,   Jumbo:                           0     
          Discard:                      0,   Buffers Purged:                  0     
                                                                                    
        Input bandwidth utilization threshold : 100.00%                             
        Output bandwidth utilization threshold: 100.00%                             
        Last 300 seconds input utility rate:  0.01%                                 
        Last 300 seconds output utility rate: 0.01%                                 
                                                                                    

Configuration Files
  • Configuration file of SwitchA

    #
    sysname SwitchA
    #
    efm enable
    #
    interface 10GE1/17/1
     efm enable                                                                     
     efm error-frame period 5                                                       
     efm error-frame threshold 5                                                    
     efm error-frame notification enable                                            
     efm error-frame-second period 120                                              
     efm error-frame-second threshold 5                                             
     efm error-frame-second notification enable                                     
     efm error-code period 5                                                        
     efm error-code threshold 5                                                     
     efm error-code notification enable                  
     efm trigger if-down
    #                                                 
    return
  • Configuration file of SwitchB

    #
    sysname SwitchB
    #
    efm enable
    #
    interface 10GE1/17/1
     efm mode passive
     efm enable
    #
    return
Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 58051

Downloads: 3621

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next