track hub-pw

Function

The track hub-pw command associates the spoke PW status with the hub PW status.

The undo track hub-pw command deletes the association between the spoke PW status and the hub PW status.

By default, the spoke PW status is not associated with the hub PW status.

Format

track hub-pw

undo track hub-pw

Parameters

None

Views

VSI-LDP-PW view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

Figure 1 shows the association between spoke PW and hub PW in the configuration guide, the UPE connects to SPE1 over PW1, a primary PW, and connects to SPE2 over PW2, a secondary PW. PW1 and PW2 work in backup mode. SPEs and NPEs are connected using hub PWs.

Under normal circumstances, if all hub PWs connected to SPE1 go Down but PW1 is Up, the upstream traffic still travels along the primary PW, PW1. As a result, traffic gets lost. To prevent traffic loss, run the track hub-pw command on SPE1 to associate the spoke PW status with the hub PW status. After the track hub-pw command is run, SPE1 instructs the UPE to switch traffic to the secondary spoke PW after detecting that all connected hub PWs go Down.

Example

# Associate the spoke PW status with the hub PW status.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal ldp
[*HUAWEI-vsi-vsi1-ldp] vsi-id 100
[*HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 upe
[*HUAWEI-vsi-vsi1-ldp] peer 2.2.2.2 pw 1
[*HUAWEI-vsi-vsi1-ldp-pw-1] track hub-pw
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >