The source-address command configures the source IP address of a NQA trace test instance.
The undo source-address command restores the default source IP address.
By default, the IP/MAC address of the interface that sends test packets is used as the source IP address.
Parameter | Description | Value |
---|---|---|
ipv6 srcAddr6 |
Specifies the source IPv6 address of an NQA test instance. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
ipv4 srcAddress |
Specifies the source IPv4 address of an NQA test instance. |
The IP address is in dotted decimal notation. |
Usage Scenario
To configure the source IP address of a test instance, run the source-address command. When test packets arrive at the destination address, the receive end returns reply packets to the configured source IP address.
Configuration Impact
If the specified source IP address is not the IP address of the device that sends test packets, no reply packet will be received.
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.
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type trace [*HUAWEI-nqa-user-test] source-address ipv6 2001:db8:1::1
<HUAWEI> system-view [~HUAWEI] nqa test-instance user test [*HUAWEI-nqa-user-test] test-type trace [*HUAWEI-nqa-user-test] source-address ipv4 10.1.1.1