The efm loopback command configures an interface to initiate or stop remote loopback.
By default, remote loopback is not configured.
Parameter | Description | Value |
---|---|---|
start |
Configures an interface to initiate remote loopback. |
- |
timeout timeout |
Specifies a timeout period for remote loopback. |
The value is an integer ranging from 0 to 1000, in minutes. The default value is 20 minutes. The value 0 indicates that no timeout period is set. That is, an interface always remains in the remote loopback state. |
stop |
Configures an interface to stop remote loopback. |
- |
Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view
Usage Scenario
EFM OAM remote loopback can be used for fault locating and link quality testing. After remote loopback is enabled, configure the local device to send test packets to the peer device. Statistics about the sent and received test packets indicate link quality.
Prerequisites
Configuration Impact
In the loopback state, a device sends back all received packets except EFM OAM PDUs through the interface that has received these packets.
Precautions
Enable remote loopback only on links that do not transmit service data to prevents service interruptions.
Remote loopback can be performed successfully only when EFM OAM is in the detect state and the local device works in active mode. You can run the display efm session command to check the status of EFM OAM between the local and peer devices.<HUAWEI> system-view [~HUAWEI] efm enable [~HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] efm mode active [*HUAWEI-GigabitEthernet0/1/0] efm enable [*HUAWEI-GigabitEthernet0/1/0] commit [*HUAWEI-GigabitEthernet0/1/0] efm loopback stop
<HUAWEI> system-view [~HUAWEI] efm enable [*HUAWEI] interface GigabitEthernet0/1/0 [*HUAWEI-GigabitEthernet0/1/0] efm mode active [*HUAWEI-GigabitEthernet0/1/0] efm enable [*HUAWEI-GigabitEthernet0/1/0] commit [*HUAWEI-GigabitEthernet0/1/0] efm loopback start