primary-root backup-root

Function

The primary-root backup-root command specifies the primary and backup P2MP tunnels.

The undo primary-root backup-root command deletes the configuration of the primary and backup P2MP tunnels.

By default, no primary and backup P2MP tunnels are specified.

Format

primary-root priRootIp [ track bfd ] backup-root bakRootIp [ track bfd ] [ wtr wtrValue ]

undo primary-root priRootIp [ track bfd ] backup-root bakRootIp [ track bfd ] [ wtr wtrValue ]

Parameters

Parameter Description Value
priRootIp

Specifies the IP address of the primary root node.

The value is in dotted decimal notation.

track

Configures the leaf node to track.

-

bfd

Configures the leaf node to track BFD sessions.

-

bakRootIp

Specifies the IP address of the backup root node.

The value is in dotted decimal notation.

wtr wtrValue

Specifies the WTR time of the BFD session to be tracked.

The value is an integer ranging from 0 to 600, in seconds. The default value is 30.

Views

VSI-inclusive-leaf view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In dual-root protection scenarios in which P2MP tunnels are used to carry services, the root nodes send two copies of traffic through the primary and backup P2MP tunnels. To specify the primary and backup P2MP tunnels, run the primary-root backup-root command on a leaf node. Then the leaf node receives and processes only traffic transmitted through the primary P2MP tunnel and discards traffic transmitted through the backup P2MP tunnel. When the primary P2MP tunnel fails, the system quickly switches service traffic to the backup P2MP tunnel, ensuring reliable traffic transmission.

Prerequisites

  • A leaf node has been specified, and the VSI-Inclusive-Leaf view has been displayed using the leaf command.
  • P2MP tunnels have been established.

Configuration Impact

After the undo primary-root backup-root command is run on a leaf node, the roles of the primary and backup P2MP tunnels are deleted so that both tunnels become independent and the leaf node receives and processes traffic from both tunnels.

Precautions

In dual-root protection scenarios in which P2MP tunnels are used to carry services, the root nodes send two copies of traffic through the primary and backup P2MP tunnels. To specify the primary and backup P2MP tunnels, run the primary-root backup-root command on a leaf node. Then the leaf node receives and processes only traffic transmitted through the primary P2MP tunnel and discards traffic transmitted through the backup P2MP tunnel. When the primary P2MP tunnel fails, the system quickly switches service traffic to the backup P2MP tunnel, ensuring reliable traffic transmission.

Example

# Specify the source IP address of the primary P2MP tunnel as 1.1.1.1 and the source IP address of the backup P2MP tunnel as 2.2.2.2.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] bgp-ad
[*HUAWEI-vsi-vsi1-bgpad] vpls-id 1:1
[*HUAWEI-vsi-vsi1-bgpad] vpn-target 1:1 import-extcommunity
[*HUAWEI-vsi-vsi1-bgpad] vpn-target 1:1 export-extcommunity
[*HUAWEI-vsi-vsi1-bgpad] quit
[*HUAWEI-vsi-vsi1] inclusive-provider-tunnel
[*HUAWEI-vsi1-inclusive] leaf
[*HUAWEI-vsi1-inclusive-leaf] primary-root 1.1.1.1 track bfd backup-root 2.2.2.2 track bfd wtr 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >