< Home

c-rp (IPv4)

Function

The c-rp command configures the switch to advertise itself as a C-RP to the BSR.

The undo c-rp command restores the default configuration.

By default, no C-RP is configured.

Format

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

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and the number of an interface. The IP address of the specified interface is advertised as a C-RP address.
NOTE:

To avoid frequent protocol changes caused by interface flapping, using loopback interfaces is recommended.

-
group-policy basic-acl-number Specifies the range of the multicast groups served by a C-RP. The range is restricted to the multicast group range permitted by the specified ACL. The basic-acl-number parameter specifies the number of the basic ACL to identify the service range of the advertised RP. The value is an integer ranging 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. The default 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. The default value is 150.
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. The default value is 60.

Views

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

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An 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. You are advised to configure a C-RP on the core switch and reserve enough bandwidth between the switch and each of the other devices in the PIM-SM domain.

An RP is elected from multiple C-RPs following these rules, in descending order of precedence:

  1. The C-RP with the longest mask length of the served group address range matching the multicast group that users have joined wins.

  2. The C-RP with highest priority wins.

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

  4. The C-RP with the largest address wins.

Prerequisites

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

  • PIM-SM has been enabled on the interface that acts as the C-RP.

Configuration Impact

An interface is specified in the command; therefore, the settings of group-policy basic-acl-number, priority priority, holdtime hold-interval and advertisement-interval adv-interval configured using this command override the global parameter settings that the interface obtains from the PIM view. If you run this command multiple times and specify the same interface, only the latest configuration takes effect.

If IP address unnumbered is configured, it is not recommended to configure C-RP on the interfaces that use the same addresses. If the interfaces have different priorities, the BSR considers that the C-RP configuration has been 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, the C-RP serves all multicast groups.

  • To enable a C-RP to serve multiple PIM-SM domains, configure multiple rules in the ACL to specify multicast group ranges for the domains.

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

Example

# In the PIM view of public network instance, use basic ACL 2069 to specify Loopback 0 as the C-RP for PIM-SM domains 225.1.0.0/16 and 226.2.0.0/16, and set the C-RP priority to 10.

<HUAWEI> system-view
[HUAWEI] acl number 2069
[HUAWEI-acl-basic-2069] rule permit source 225.1.0.0 0.0.255.255
[HUAWEI-acl-basic-2069] rule permit source 226.2.0.0 0.0.255.255
[HUAWEI-acl-basic-2069] quit
[HUAWEI] multicast routing-enable
[HUAWEI] interface loopback 0
[HUAWEI-LoopBack0] pim sm
[HUAWEI-LoopBack0] quit
[HUAWEI] pim
[HUAWEI-pim] c-rp loopback 0 group-policy 2069 priority 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >