< Home

source-address

Function

The source-address command sets the source IP address for a test instance.

The undo source-address command restores the default setting.

By default, the IP address of the interface where packets are sent functions as the source IP address of a test instance.

Format

source-address ipv4 ipv4-address

undo source-address

Parameters

Parameter Description Value

ipv4 ipv4-address

Specifies the IPv4 source address for the NQA test instance.

The value is in dotted decimal notation.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the test packets are transmitted to the destination address, the source address of the NQA test instance is used as the destination address. The source-address command is used to configure the source IP address for the NQA test. If no source IP address is configured, the system specifies the IP address that sends test packets as the source IP address.

Prerequisites

The type of a test instance has been specified using the test-type command. However, the test type cannot be PWE3 trace, PWE3 ping, or MAC ping.

Precautions

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

Example

# Set the source IP address to 10.1.1.1 for test instance user test.

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