source-interface (Trace test instance)

Function

The source-interface command specifies a source interface for an NQA test instance of Trace test.

The undo source-interface command deletes the source interface for an NQA test instance of Trace test.

By default, no source interface is specified for an NQA test instance.

Format

source-interface { ifName | ifType ifNum }

undo source-interface

Parameters

Parameter Description Value
ifName

Specifies the name of a source interface.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

ifType

Specifies the type of a source interface.

-

ifNum

Specifies the number of a source interface.

The value is a string of 1 to 63 case-sensitive characters, spaces not supported.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

The source-interface command specifies a source interface for an NQA test instance.

The source-interface command is applicable to the following scenarios:

  • If both a source IP address and a source interface are specified for an NQA test instance, test packets are sent through the specified source interface.
  • If no source IP address is specified, the IP address of the source interface is used as the source IP address of the NQA test instance. In this case, the test packets are sent and received on the source interface configured using the source-interface command.

Prerequisites

The specified source interface is Up.

Precautions

If parameters need to be changed during the running of the test instance, the system prompts you whether to terminate the test instance. Press "Y" or "N" as required.

  • If you press "Y", the test instance is terminated and parameters changed. The settings take effect after being committed. To restart the test instance, run the start command.
  • If you press "N", the test instance keeps running, and the parameters fail to be modified.

Example

# Configure GE 0/1/0 as the source interface for the test instance named user test.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type trace
[*HUAWEI-nqa-user-test] source-interface GigabitEthernet 0/1/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >