The c-rp command configures the FW to advertise itself as a Candidate-Rendezvous Point (C-RP) to the BootStrap router (BSR).
The undo c-rp command restores the default configuration.
c-rp interface-type interface-number [ group-policy basic-acl-number | priority priority | holdtime hold-interval | advertisement-interval adv-interval ] *
undo c-rp interface-type interface-number
| Parameter | Description | Value |
|---|---|---|
| interface-type interface-number | Specifies the interface type and the interface number of an interface. The IP address of the interface is advertised as the address of a C-RP. | - |
| group-policy basic-acl-number | Specifies the range of the multicast groups served by a C-RP. The range is restricted to the multicast groups permitted by a certain ACL. The basic-acl-number parameter specifies the number of the basic ACL which is used to identify the service range of the advertised RP. | The value ranges from 2000 to 2999. |
| priority priority | Specifies the priority of a C-RP. The greater the value, the lower the priority. | The value is an integer ranging from 0 to 255. By default, the value is 0. |
| holdtime hold-interval | Specifies the timeout period during which the BSR waits to receive an Advertisement message from a C-RP. | The value is an integer ranging from 1 to 65535, in seconds. By default, the value is 150 seconds. |
| advertisement-interval adv-interval | Specifies the interval for a C-RP to send Advertisement messages. | The value is an integer ranging from 1 to 65535, in seconds. By default, the value is 60 seconds. |
By default, the C-RP is not configured.
Usage Scenario
A Rendezvous Point (RP) is the core of a PIM-SM domain, and therefore a C-RP must be able to communicate with the other devices in the PIM-SM domain. Configuring a C-RP on the FW on the backbone network and reserving enough bandwidth between the FW and each of the other devices in the PIM-SM domain are recommended.
The rules used to elect an RP from multiple C-RPs are as follows:
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.
Prerequisites
The multicast routing-enable command has been run.
The interface that acts as C-RP must be enabled with PIM-SM.
If basic-acl-number is specified in the c-rp command, make sure that the corresponding ACL rule has been configured.
Configuration Impact
If this command is run several times on the same interface, only the latest configuration is valid.
The group-policy basic-acl-number, priority priority, holdtime hold-interval and advertisement-interval adv-interval set by using the command take precedence over the values of the global parameters configured in the PIM view because this command has the interface parameter. If this command is run several times on the same interface, only the latest configuration is valid.
If the address borrowing is configured, it is not recommended to configure C-RP on the interfaces that have the same addresses. If the priorities of the interfaces are different, the BSR considers that the C-RP configuration is repeatedly modified.
Precautions
basic-acl-number specifies a group range. All permitted group ranges will be advertised as the ranges of groups that the RP serves. If no group range is specified for a C-RP or a C-RP is configured to serve all addresses, the C-RP serves all multicast groups.
The c-rp command needs to be used together with the acl command. In the ACL view, source can be specified in the rule command to specify the range of groups that a C-RP serves.
To configure the FW as the C-RP of multiple PIM-SM domains, the range of the multiple groups must be shown by multiple rules when the corresponding ACL of group-policy is configured.
# Configure Loopback 0 as the C-RP for PIM-SM domain 225.1.0.0/16 and 226.2.0.0/16, and set the basic ACL number to 2069 and the priority to 10 for the C-RP.
<sysname> system-view [sysname] acl number 2069 [sysname-acl-basic-2069] rule permit source 225.1.0.0 0.0.255.255 [sysname-acl-basic-2069] rule permit source 226.2.0.0 0.0.255.255 [sysname-acl-basic-2069] quit [sysname] multicast routing-enable [sysname] pim [sysname-pim] c-rp loopback 0 group-policy 2069 priority 10