The source-address command configures the source IP/MAC address of a NQA generalflow test instance.
The undo source-address command restores the default source IP/MAC address.
By default, the IP/MAC address of the interface that sends test packets is used as the source IP/MAC address.
Parameter | Description | Value |
---|---|---|
mac mac-address |
Specifies the source MAC address of an NQA test instance. |
The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. The MAC address cannot be set to FFFF-FFFF-FFFF or a multicast address starting with 01. |
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/MAC 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/MAC 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.