< Home

local-pw-id

Function

Using the local-pw-id command, you can set the ID of the local end of a PW or a VC.

Using the undo local-pw-id command, you can delete the configured ID of the local end of a PW or a VC.

By default, local-pw-id is not configured.

Format

local-pw-id local-pw-id

undo local-pw-id

Parameters

Parameter Description Value
local-pw-id Specifies the ID of the local end of a PW or a VC.

The value is a decimal integer.

  • When the test instance is of PWE3Ping, the value of local-pw-id is an integer that ranges from 1 to 4294967295, and only the VC type of LDP is supported.
  • When the test instance is of PWE3Trace: when the VC type is LDP, the value of local-pw-id is an integer that ranges from 1 to 4294967295; when the VC type is BGP, the value of local-pw-id is an integer that ranges from 0 to 65534.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

PWE3 ping and PWE3 trace test instances can be used in the following scenarios:

Connectivity and faulty node detections for a single-hop PW. After the local-pw-id command is run in the NQA view to configure the local PW ID or VC ID, you can specify a PW for the detection.

Connectivity and faulty node detections for a multi-hop PW. After the local-pw-id command is run in the NQA view to configure the local PW ID or VC ID, you need to specify the destination address.
  • If the label-type parameter is set to control-word, run the remote-pw-id remote-pw-id command to configure the remote PW ID.
  • If the label-type parameter is set to label-alert or normal, run the destination-address ipv4 ipv4-address [ lsp-masklen masklen | lsp-masklen masklen lsp-loopback loopback-address | lsp-loopback loopback-address lsp-masklen masklen ] command to configure the destination address for PWE3 ping and PWE3 trace test instances.

Prerequisites

Before running the local-pw-id command, you must set the NQA test type to PWE3 Trace or PWE3 Ping in the NQA view.

Precautions

The local-pw-id value must be the same as the VC ID value in the display mpls l2vc command output; otherwise, the test may fail.

Example

# Set the ID of the local end of a PW to 100 in the NQA view.

<HUAWEI> system-view
[HUAWEI] nqa test-instance admin pwe3
[HUAWEI-nqa-admin-pwe3] test-type pwe3trace
[HUAWEI-nqa-admin-pwe3] local-pw-id 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >