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.
The configuration roadmap is as follows:
Configure EFM between SwitchB and SwitchC.
Configure association between EFM and GigabitEthernet0/0/1 on SwitchB.
# 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 --
# 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
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.
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