< 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.

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 is, the lower the priority is. The value is an integer that ranges from 0 to 255. The default value is 0.

Views

PIM view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The following rules are used to elect a Rendezvous Point (RP) from multiple C-RPs:

  • The C-RP wins if it serves the group address that users join has the longest mask.

  • The C-RP with highest priority wins.

  • In case of the same priority, hash functions are operated. The C-RP with the greatest calculated value wins.

  • If all the preceding factors are the same, 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

The multicast routing-enable command has been run.

Configuration Impact

If the c-rp priority command is run several times, the latest configuration overrides the previous one.

Precautions

The function of this command is the same as that of the c-rp interface-type interface-number priority priority command, except for the function range. The c-rp priority priority command is globally valid, while the c-rp interface-type interface-number priority priority command is valid for a specified interface only.

The system prefers the configuration done by using the c-rp interface-type interface-number priority priority command. When the c-rp interface-type interface-number priority priority command is not run, the configuration done by using the c-rp priority priority command is used.

Example

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

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