traffic-type

Function

The traffic-type command sets the traffic type for test flows in an Ethernet service activation test.

The undo traffic-type command deletes the traffic type for test flows in an Ethernet service activation test.

By default, the traffic type of service flows is not configured.

Format

traffic-type { mac { destination destination-mac [ end-destination-mac ] | source source-mac [ end-source-mac ] } | ipv4 { destination destination-ip [ end-destination-ip ] | source source-ip [ end-source-ip ] } }

undo traffic-type mac destination

undo traffic-type mac source

undo traffic-type ipv4 destination

undo traffic-type ipv4 source

Parameters

Parameter Description Value
mac

Indicates MAC addresses.

-

destination destination-ip

Specifies a destination IPv4 address or a start destination IPv4 address in a range.

The value is in dotted decimal notation.

destination destination-mac

Specifies a destination MAC address or a start destination MAC address in a range.

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.

end-destination-mac

Specifies the end destination MAC address.

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.

source source-ip

Specifies a source IPv4 address or a start source IPv4 address in a range.

The value is in dotted decimal notation.

source source-mac

Specifies a source MAC address or a start source MAC address in a range.

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.

end-source-mac

Specifies the end source MAC address.

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

Indicates IPv4 addresses.

-

end-destination-ip

Specifies the end destination IPv4 address.

The value is in dotted decimal notation.

end-source-ip

Specifies the end source IPv4 address.

The value is in dotted decimal notation.

Views

NQA test flow view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

MAC, IP, or both MAC and IP addresses are specified based on traffic types:

  • For Ethernet Layer 2 switching and L2VPN services, a MAC address must be specified, and an IP address is optional.
  • For IP routing and L3VPN services, an IP address and a MAC address must be specified. If no IP address or MAC address is specified, the reflector will reflect all the traffic, which affects other service functions.
  • For L2VPN accessing L3VPN, both MAC and IP addresses must be specified.

Precautions

For the same test flow, a range can be specified only in one of the traffic-type, vlan, pe-vid, udp destination-port, and udp source-port commands. In addition, the difference between the start and end values cannot be more than 127, and the end value must be greater than the start value.

In the traffic-type command, the start MAC or IP address has only one different octet from the end MAC or IP address. For example, the start IP address is set to 1.1.1.1, and the end IP address can only be set to an IP address in the network segment 1.1.1.0.

Example

# Specify the destination IP address for test flows in an Ethernet service activation test
<HUAWEI> system-view
[~HUAWEI] nqa test-flow 1
[*HUAWEI-nqa-testflow-1] traffic-type ipv4 destination 192.168.1.1 192.168.1.100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >