Example for Configuring Association Between EFM Modules
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.
Link detection protocols are usually deployed on a network to detect link connectivity and faults. A single fault detection protocol cannot detect all faults in all links on a complex network. Network environments and user requirements need to be analyzed, and various detection techniques are required to implement rapid link fault detection.
Connectivity of links between CE1 and CE4, between CE4 and CE3 can be detected.
When the link between CE1 and CE4 becomes faulty, CE3 can detect the fault.
When the link between CE1 and CE4 becomes faulty, services are switched to the link between CE1 and CE2.
Configuration Roadmap
Configure EFM for the link between CE1 and CE4 to monitor connectivity of the link between CE1 and CE4.
Configure EFM for the link between CE4 and CE3 to monitor connectivity of the link between CE4 and CE3.
Configure association between EFM modules so that the fault can be transmitted.
Configure association between EFM and an interface on CE3. When EFM detects a link fault between CE1 and CE4, the interface becomes Down.
Procedure
- Configure basic EFM functions.
# Enable EFM on CE1 globally.
<HUAWEI> system-view [HUAWEI] sysname CE1 [CE1] efm enable
# Enable EFM on GE1/0/3 of CE1.
[CE1] interface gigabitethernet 1/0/3 [CE1-GigabitEthernet1/0/3] efm enable [CE1-GigabitEthernet1/0/3] quit
# Enable EFM on CE3 globally.
<HUAWEI> system-view [HUAWEI] sysname CE3 [CE3] efm enable
# Enable EFM on GE1/0/3 of CE3.
[CE3] interface gigabitethernet 1/0/3 [CE3-GigabitEthernet1/0/3] efm enable [CE3-GigabitEthernet1/0/3] quit
# Enable EFM on CE4 globally.
<HUAWEI> system-view [HUAWEI] sysname CE4 [CE4] efm enable
# Enable EFM on 1/0/1 and GE1/0/2 of CE4.
[CE4] interface gigabitethernet 1/0/1 [CE4-GigabitEthernet1/0/1] efm enable [CE4-GigabitEthernet1/0/1] quit [CE4] interface gigabitethernet 1/0/2 [CE4-GigabitEthernet1/0/2] efm enable [CE4-GigabitEthernet1/0/2] quit
# Verify the configuration.
Run the display efm session { all | interface interface-type interface-num } command on each device. If the EFM status is detect, the EFM configuration on CE3, CE1, and CE4 is correct.
[CE1] display efm session all Interface EFM State Loopback Timeout ---------------------------------------------------------------------- GigabitEthernet1/0/3 detect --
- Configure association between EFM modules.
# Configure association between EFM modules on CE4.
[CE4] oam-mgr [CE4-oam-mgr] oam-bind efm interface gigabitethernet 1/0/1 efm interface gigabitethernet 1/0/2 [CE4-oam-mgr] quit
- Configure association between EFM and an interface.
# Configure association between EFM and an interface on CE3.
[CE3] interface gigabitethernet 1/0/3 [CE3-GigabitEthernet1/0/3] efm trigger if-down [CE3-GigabitEthernet1/0/3] quit
- Verify the configuration.
After association functions are configured, run the shutdown command on GE1/0/3 of CE1 to simulate a fault on the link between CE1 and CE4. Run the display interface interface-type interface-num command on GE1/0/3 of CE3. The command output shows that the Line protocol current state field value is DOWN (EFM down), indicating that the fault is transmitted from the link between CE1 and CE4 to the link between CE4 and CE3.
[CE1] interface gigabitethernet 1/0/3 [CE1-GigabitEthernet1/0/3] shutdown [CE1-GigabitEthernet1/0/3] quit
[CE3] display interface gigabitethernet 1/0/3 GigabitEthernet1/0/3 current state : UP Line protocol current state : DOWN (EFM down) ...
The output of the display interface gigabitethernet 1/0/3 command displays information that you need to concern and "..." indicates that information is omitted.
Configuration Files
CE1 configuration file
# sysname CE1 # efm enable # interface GigabitEthernet1/0/3 efm enable # return
CE3 configuration file
# sysname CE3 # efm enable # interface GigabitEthernet1/0/3 efm enable efm trigger if-down # return
CE4 configuration file
# sysname CE4 # efm enable # interface GigabitEthernet1/0/1 efm enable # interface GigabitEthernet1/0/2 efm enable # oam-mgr oam-bind ingress efm interface GigabitEthernet1/0/1 egress efm interface GigabitEthernet1/0/2 oam-bind ingress efm interface GigabitEthernet1/0/2 egress efm interface GigabitEthernet1/0/1 # return