< Home

c-rp priority (IPv4)

Function

The c-rp priority command configures the global priority of a C-RP.

The undo c-rp priority command restores the default configuration.

By default, the global priority of a C-RP is 0.

Format

c-rp priority priority

undo c-rp priority

Parameters

Parameter Description Value
priority Specifies the global priority of a C-RP. The greater the value, the lower the priority. The value is an integer that ranges from 0 to 255.

Views

PIM view of public network instance or PIM view of VPN instance

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The following rules are used to elect an RP from multiple C-RPs, in descending order of precedence:

  • The C-RP with the interface address that has the longest mask wins.

  • The C-RP with highest priority wins.

  • The C-RP with the largest hash value wins.

  • The C-RP with the largest address wins.

To enable a C-RP to function as an RP, you can run the c-rp priority command to increase the priority of the C-RP.

Prerequisites

IP multicast routing has been enabled using the multicast routing-enable command.

Precautions

You can run the c-rp interface-type interface-number priority priority command in the PIM view to configure the C-RP interface and specify the C-RP priority. The c-rp priority priority command specifies the global C-RP priority. If both c-rp interface-type interface-number priority priority and c-rp priority priority are used, the c-rp interface-type interface-number priority priority command takes effect.

Example

# In the PIM view of public network instance, set the global priority of a C-RP to 5.

<HUAWEI> system-view
[HUAWEI] multicast routing-enable
[HUAWEI] pim
[HUAWEI-pim] c-rp priority 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >