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.
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
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. |
Usage Scenario
MAC, IP, or both MAC and IP addresses are specified based on traffic types:
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.