The efm mode command configures the working mode of EFM on an interface.
The undo efm mode command restores the default working mode of EFM on an interface.
By default, EFM on an interface works in active mode.
Parameter | Description | Value |
---|---|---|
active |
Indicates that EFM on an interface works in active mode. |
- |
passive |
Indicates that EFM on an interface works in passive mode. |
- |
Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, port group view
Usage Scenario
EFM supports two connection modes: active and passive. By setting the working mode of EFM OAM, you can configure whether a device can send or receive a specified type of EFM OAMPDU. Table 1 describes the differences between the active and passive modes.
Event |
Active Mode |
Passive Mode |
---|---|---|
Initiate a connection request by sending an Information OAMPDU during the discovery process |
Supported |
Not supported |
Respond to a connection request during the discovery process |
Supported |
Supported |
Send Information OAMPDUs |
Supported |
Supported |
Send Event Notification OAMPDUs |
Supported |
Supported |
Send Loopback Control OAMPDUs |
Supported |
Not supported |
Respond to Loopback Control OAMPDUs |
Supported (The remote EFM entity must work in active mode.) |
Supported |
Precautions
The working mode of EFM can be set on an interface only after EFM is enabled globally and before EFM is enabled on the interface. The working mode of EFM on an interface cannot be changed after EFM is enabled on the interface. Before changing the working mode of EFM on an interface, run the undo efm enable command to disable EFM on the interface.
An EFM connection can only be initiated by an OAM entity working in active mode. An OAM entity working in passive mode waits to receive a connection request from its peer entity.
Two OAM entities both working in passive mode cannot establish an EFM connection between them.
# Configure EFM OAM on Layer 2 interface GigabitEthernet0/0/1 to work in passive mode.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] efm mode passive
# Configure EFM OAM on Layer 3 interface GigabitEthernet0/0/1 to work in passive mode.
<HUAWEI> system-view [HUAWEI] efm enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] efm mode passive