vlan (NQA test flow view)

Function

The vlan command specifies VLAN IDs carried in Ethernet packets in an NQA test instance.

The undo vlan command deletes VLAN IDs carried in Ethernet packets in an NQA test instance.

By default, no VLAN IDs are set.

Format

vlan vlan-id [ end-vlan-vid ]

undo vlan

Parameters

Parameter Description Value
vlan-id

Specifies a VLAN ID or a start VLAN ID in Ethernet packets.

The value is an integer ranging from 1 to 4094.

end-vlan-vid

Specifies the end VLAN ID in Ethernet packets.

The value is an integer ranging from 1 to 4094.

Views

NQA test flow view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

To set a VLAN ID or a range of VLAN IDs carried in Ethernet service activation test packets, run the vlan command. The reflector can loop packets carrying the specified VLAN IDs.

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.

Example

# Set the VLAN ID carried in Ethernet packets to 1 in an NQA test instance.
<HUAWEI> system-view
[~HUAWEI] nqa test-flow 1
[*HUAWEI-nqa-testflow-1] vlan 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >