< Home

source-interface

Function

The source-interface command configures the source interface for an NQA test instance.

The undo source-interface command cancels the configuration.

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

Format

source-interface interface-type interface-number

undo source-interface

Parameters

Parameter Description Value

interface-type interface-number

Specifies the type and number of the source interface for an NQA test instance.

-

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After test packets reach the destination address, the destination end sends response packets to the client end. After the source-interface command is used to configure the source interface for an NQA test instance, there are the following scenarios:
  • If the source-address command is run to specify the source IP address, the test packets are sent from the specified source interface, but the response packets are received from the configured source IP address.
  • If no source IP address is specified for an NQA test instance, the IP address of the source interface will be used as the source IP address of the NQA test instance. In this scenario, the initiated and responded packets are both transmitted over the outbound interface specified by the source-interface command.

Prerequisites

The type of a test instance has been specified using the test-type command. The source interface can be configured only for ICMP, ICMP Jitter, UDP Jitter, and MAC Ping test instances.

Precautions

The configuration of the source interface of a running test instance cannot be changed.

The source interface of an NQA test instance must be an interface with an IP address configured; otherwise, the command cannot take effect.

The source interface cannot be a link aggregation interface or a member interface in load balancing scenario; otherwise, the command cannot take effect.

Example

# Set the source interface of test instance user test to vlanif 100.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type icmp
[HUAWEI-nqa-user-test] source-interface vlanif 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >