< Home

source-interface

Function

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

The undo source-interface command deletes the configuration.

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

For DHCP tests, source-interface is mandatory. FWDHCP Discover packets are sent over a specified interface.

For other test types, source-interface is optional. When multiple paths to the destination address exist, you can specify the source interface using source-interface, so that test packets are forwarded on the specified path.

Prerequisites

Before running the datafill command, run the test-type command to specify the type of a test instance, which may be one of the following:
  • ICMP
  • DHCP
  • HTTP
  • UDP-jitter

Precautions

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

Example

# Configure GE0/0/0 as the source interface for the test instance named admin http.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] source-interface GigabitEthernet 0/0/0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >