Example for Configuring Association Between an EFM Module and an Interface
Networking Requirements
As shown in Figure 9-16, EFM is configured between SwitchB and SwitchC. When GigabitEthernet2/0/1 on SwitchB becomes Down, EFM reports the fault to GigabitEthernet1/0/1 on SwitchB through association. Then GigabitEthernet1/0/1 becomes Down.
Configuration Roadmap
The configuration roadmap is as follows:
Configure EFM between SwitchB and SwitchC.
Configure association between EFM and GigabitEthernet1/0/1 on SwitchB.
Procedure
- Configure EFM between SwitchB and SwitchC.
# Configure SwitchB.
<Quidway> system-view [Quidway] sysname SwitchB [SwitchB] efm enable [SwitchB] interface gigabitethernet 2/0/1 [SwitchB-GigabitEthernet2/0/1] efm mode passive [SwitchB-GigabitEthernet2/0/1] efm enable [SwitchB-GigabitEthernet2/0/1] quit
# Configure SwitchC.
<Quidway> system-view [Quidway] sysname SwitchC [SwitchC] efm enable [SwitchC] interface gigabitethernet 2/0/1 [SwitchC-GigabitEthernet2/0/1] 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 2/0/1 Interface EFM State Loopback Timeout ---------------------------------------------------------------------- GigabitEthernet2/0/1 detect --
- Configure association between EFM and an interface.
# Configure GigabitEthernet1/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 2/0/1 trigger if-down interface gigabitethernet 1/0/1 [SwitchB-oam-mgr] quit
- Verify the configuration.
Run the shutdown command on GE2/0/1 of SwitchB. EFM OAM reports the fault to GigabitEthernet1/0/1. Then GigabitEthernet1/0/1 enters the TRIGGER DOWN (3AH) state.
[SwitchB] interface gigabitethernet 2/0/1 [SwitchB-GigabitEthernet2/0/1] shutdown [SwitchB-GigabitEthernet2/0/1] quit
[SwitchB] display interface gigabitethernet 1/0/1 GigabitEthernet1/0/1 current state : TRIGGER DOWN (3AH) Line protocol current state : DOWN ...
The output of the display interface gigabitethernet 1/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 GigabitEthernet2/0/1 efm mode passive efm enable # oam-mgr oam-bind ingress efm interface GigabitEthernet2/0/1 trigger if-down egress interface GigabitEthernet1/0/1 oam-bind ingress interface GigabitEthernet1/0/1 egress efm interface GigabitEthernet2/0/1 trigger if-down # return
SwitchC configuration file
# sysname SwitchC # efm enable # interface GigabitEthernet2/0/1 efm enable # return