< Home

test-packet start

Function

The test-packet start command configures the device to send test packets.

Format

test-packet start interface interface-type interface-number [ -c count | -s size ] *

Parameters

Parameter Description Value
interface-type interface-number

Specifies the outbound interface of test packets.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-
-c count

Specifies the number of test packets to be sent.

The value is an integer that ranges from 1 to 65535. The default value is 5.
-s size

Specifies the length of a test packet.

The value is an integer that ranges from 64 to 1518, in bytes. The default value is 64 bytes.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After remote loopback is enabled on the device, run the test-packet start command on an interface in active mode to configure the device to send test packets. Then check link connectivity and performance based on returned test packets.

Press Ctrl+C to stop sending test packets. After using this command to send test packets, use the display test-packet result command to view the test result.

Precautions

During test packet transmission, parameters of sent test packets cannot be changed.

Example

# Send test packets from outbound interface GigabitEthernet0/0/1.
<HUAWEI> system-view
[HUAWEI] test-packet start interface gigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic