< Home

Example for Configuring Association Between an EFM Module and an Interface

Networking Requirements

As shown in Figure 1, EFM is configured between SwitchB and SwitchC. When GigabitEthernet0/0/2 on SwitchB becomes Down, EFM reports the fault to GigabitEthernet0/0/1 on SwitchB through association. Then GigabitEthernet0/0/1 becomes Down.

Figure 1 Association between EFM and an interface

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure EFM between SwitchB and SwitchC.

  2. Configure association between EFM and GigabitEthernet0/0/1 on SwitchB.

Procedure

  1. Configure EFM between SwitchB and SwitchC.

    # Configure SwitchB.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchB
    [SwitchB] efm enable
    [SwitchB] interface gigabitethernet 0/0/2
    [SwitchB-GigabitEthernet0/0/2] efm mode passive
    [SwitchB-GigabitEthernet0/0/2] efm enable
    [SwitchB-GigabitEthernet0/0/2] quit
    

    # Configure SwitchC.

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchC
    [SwitchC] efm enable
    [SwitchC] interface gigabitethernet 0/0/2
    [SwitchC-GigabitEthernet0/0/2] efm enable
    

    Run the display efm session interface command on SwitchB to check the EFM OAM status. You can see that EFM OAM is in detect state.

    [SwitchB] display efm session interface gigabitethernet 0/0/2
      Interface                 EFM State                   Loopback Timeout
      ----------------------------------------------------------------------
      GigabitEthernet0/0/2     detect                        --

  2. Configure association between EFM and an interface.

    # Configure GigabitEthernet0/0/1 on SwitchB and EFM between SwitchB and SwitchC to report faults to each other.

    [SwitchB] oam-mgr
    [SwitchB-oam-mgr] oam-bind efm interface gigabitethernet 0/0/2 trigger if-down interface gigabitethernet 0/0/1
    [SwitchB-oam-mgr] quit

  3. Verify the configuration.

    Run the shutdown command on GE0/0/2 of SwitchB. EFM OAM reports the fault to GigabitEthernet0/0/1. Then GigabitEthernet0/0/1 enters the TRIGGER DOWN (3AH) state.

    [SwitchB] interface gigabitethernet 0/0/2
    [SwitchB-GigabitEthernet0/0/2] shutdown
    [SwitchB-GigabitEthernet0/0/2] quit
    [SwitchB] display interface gigabitethernet 0/0/1
    GigabitEthernet0/0/1 current state : TRIGGER DOWN (3AH)                                       
    Line protocol current state : DOWN                                              
    ...
    

    The output of the display interface gigabitethernet 0/0/1 command displays information that you need to concern and "..." indicates that information is omitted.

Configuration Files

  • SwitchB configuration file

    #
    sysname SwitchB
    #
    efm enable
    #
    interface GigabitEthernet0/0/2
     efm mode passive
     efm enable
    # 
    oam-mgr
     oam-bind ingress efm interface GigabitEthernet0/0/2 trigger if-down egress interface GigabitEthernet0/0/1 
     oam-bind ingress interface GigabitEthernet0/0/1 egress efm interface GigabitEthernet0/0/2 trigger if-down   
    #
    return
  • SwitchC configuration file

    #
    sysname SwitchC
    #
    efm enable
    #
    interface GigabitEthernet0/0/2
     efm enable
    #
    return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic