The test-packet start interface command configures an interface to send testing packets.
By default, no testing packets is sent.
Parameter | Description | Value |
---|---|---|
interface-type |
Specifies the type of an outbound interface that sends testing packets. |
The value can be Ethernet or GE. |
interface-number |
Specifies the number of an outbound interface that sends testing packets. |
- |
-c count |
Specifies the number of sent testing packets. |
The value is an integer ranging from 1 to 65535. The default value is 5. |
-p speed |
Specifies the rate at which testing packets are sent. |
The value is an integer ranging from 1 to 5, in Mbit/s. The default value is 1 Mbit/s. |
-s size |
Specifies the size of a testing packet. |
The value is an integer ranging from 64 to 1518, in bytes. The default value is 64 bytes. |
Usage Scenario
After remote loopback is enabled on a device, the test-packet start interface command can be used to configure the interface in the active mode to send testing packets. Based on returned testing packets, you can evaluate the connectivity and performance of the link.
Prerequisites
Remote loopback has been enabled on an interface.
Follow-up Procedure
To stop sending testing packets, press Ctrl+C.
After running the test-packet start interface command to send testing packets, you can run the display test-packet result command to view the test results.Precautions
<HUAWEI> system-view [~HUAWEI] efm enable [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] efm enable [*HUAWEI-GigabitEthernet0/1/0] com [~HUAWEI-GigabitEthernet0/1/0] efm loopback start [~HUAWEI-GigabitEthernet0/1/0] quit [~HUAWEI] test-packet start interface GigabitEthernet0/1/0