source-address (Generalflow test instance)

Function

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.

Format

source-address ipv4 srcAddress

source-address mac mac-address

undo source-address

undo source-address ipv4

undo source-address mac

undo source-address ipv4 srcAddress

undo source-address mac mac-address

Parameters

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.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

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.

  • If you press "Y", the test instance is terminated and parameters changed. The settings take effect after being committed. To restart the test instance, run the start command.
  • If you press "N", the test instance keeps running, and the parameters fail to be modified.

    The same test instance can be assigned only one source address, and the latest configuration overrides the previous one.

    If a source MAC address is configured to initiate an NQA generalflow test, MAC entry learning on the reflector will be affected.

Example

# Set the source IP address to 10.1.1.1, respectively, for the test instance named user test.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type generalflow
[*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 >