< Home

source-address (NQA view)

Function

The source-address command specifies the source IP address for a test.

The undo source-address command deletes the specified source IP address.

Format

source-address ipv4 ip-address

undo source-address

Parameters

Parameter Description Value
ipv4 ip-address

Specifies the source IPv4 address for a test.

The value is in dotted decimal notation.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

By default, the source IP address is the IP address of the interface that sends test packets.

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
  • FTP
  • HTTP
  • UDP-tracert
  • TCP
  • UDP
  • UDP-jitter

Precautions

You cannot change the source IP address for an ongoing test.

The specified source IP address must be the IP address of an interface, in the Up state, on the FW. Otherwise, the test fails.

Example

# Set the source IP address for test admin http to 10.1.1.1.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] source-address ipv4 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >