c-rp (PIM view)
Use c-rp to configure a candidate-RP (C-RP).
Use undo c-rp to remove the configuration of a C-RP.
Syntax
c-rp ip-address [ advertisement-interval adv-interval | group-policy ipv4-acl-number | holdtime hold-time | priority priority ] * [ bidir ]
undo c-rp ip-address
Default
No C-RPs exist.
Views
PIM view
Predefined user roles
network-admin
mdc-admin
Parameters
ip-address: Specifies the IP address of a C-RP. You must specify the IP address of a local PIM interface.
advertisement-interval adv-interval: Specifies a C-RP advertisement interval in the range of 1 to 65535 seconds. The default value is 60 seconds.
group-policy ipv4-acl-number: Specifies an IPv4 basic ACL by its number in the range of 2000 to 2999. If you specify an ACL, this command designates the C-RP to IPv4 multicast groups in C-RP advertisement messages that the ACL permits. The C-RP is designated to all IPv4 multicast groups when one of the following conditions exists:
You do not specify an ACL.
The specified ACL does not exist.
The specified ACL does not have valid rules.
holdtime hold-time: Specifies a C-RP lifetime in the range of 1 to 65535 seconds. The default value is 150 seconds.
priority priority: Specifies a C-RP priority in the range of 0 to 255. The default setting is 192. The greater the value, the lower the priority.
bidir: Specifies BIDIR-PIM to which the C-RP is designated. If you do not specify this keyword, the C-RP provides services for PIM-SM.
Usage guidelines
To designate a C-RP to multiple multicast group ranges, create multiple rules that specify different multicast group ranges in the ACL.
When you configure a rule in the IPv4 basic ACL, follow these restrictions and guidelines:
For the rule to take effect, do not specify the vpn-instance vpn-instance option.
The source source-address source-wildcard option specifies a multicast group range.
Among the other optional parameters, only the fragment keyword and the time-range time-range-name option take effect.
If you execute this command by using the same C-RP address multiple times, the most recent configuration takes effect.
Examples
# Configure the interface with IP address 1.1.1.1 as a C-RP for multicast group ranges 225.1.0.0/16 and 226.2.0.0/16 and set its priority to 10 on the public network.
<Sysname> system-view [Sysname] acl basic 2000 [Sysname-acl-ipv4-basic-2000] rule permit source 225.1.0.0 0.0.255.255 [Sysname-acl-ipv4-basic-2000] rule permit source 226.2.0.0 0.0.255.255 [Sysname-acl-ipv4-basic-2000] quit [Sysname] pim [Sysname-pim] c-rp 1.1.1.1 group-policy 2000 priority 10