< Home

loopbacktest

Function

The loopbacktest command configures internal loopback detection on an interface.

By default, internal loopback detection is not configured.

Format

loopbacktest internal

Parameters

Parameter

Description

Value

internal

Configures internal loopback detection. Internal loopback detection is used to check whether the internal forwarding chip controls forwarding on the interface correctly.
  • If the test packet is received, the internal forwarding chip functions properly.
  • If the test packet is not received, the internal forwarding chip is faulty.

-

Views

Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view

Default Level

3: Management level

Usage Guidelines

You can run the loopbacktest command to check whether the internal forwarding chip functions properly.

Loopback detection is not required when an interface is shut down.

Loopback detection is not supported on a service stack interface.

The internal loopback detection result can be used only when no service is configured on the switch.

You cannot run the loopbacktest command to perform loopback detection on a fabric port.

After the energy-saving mode is set to basic or deep, loopback detection is disabled on an interface. Therefore, before performing loopback detection, set the energy-saving mode to standard.

Example

# Configure internal loopback detection on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] loopbacktest internal
Warning: This command may conflict with other service configurations. It can only be used on a device with no configuration. Continu
e?[Y/N]:y
Info: This operation may take a few seconds. Please wait for a moment....................
Info: Loopback packet test succeeded.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >