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.
c-rp ipv6-address [ advertisement-interval adv-interval | [ group-policy basic-acl6-number | scope scope-id ] | holdtime hold-interval | priority priority ] *
undo c-rp ipv6-address [ scope scope-id ]
Parameter | Description | Value |
---|---|---|
ipv6-address | Specifies the global IPv6 unicast address of a C-RP. NOTE:
To avoid frequent protocol changes caused by interface flapping, use the loopback interface address as the global IPv6 unicast address of the C-RP. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
advertisement-interval adv-interval | Specifies the interval at which the C-RP sends Advertisement messages. | The value is an integer that ranges from 1 to 65535, in seconds. By default, the value is 60 seconds. |
group-policy basic-acl6-number | Specifies the range of multicast groups that the C-RP serves. The range is limited through the ACL6. basic-acl6-number specifies the number of the basic ACL6 used to limit the range of multicast groups that the C-RP serves. | The value is an integer that ranges from 2000 to 2999. |
scope scope-id | Specifies the scope ID of the BSR administrative domain that a C-RP serves. | The value is an integer that ranges from 3 to 15. |
holdtime hold-interval | Specifies the holdtime period during which the C-RP sends Advertisement messages. hold-interval specifies the time remaining before the C-RP sends Advertisement messages. | The value is an integer that ranges from 1 to 65535, in seconds. By default, the value is 150 seconds. |
priority priority | Specifies the priority of a C-RP. The value of priority indicates the priority of a C-RP. | The value is an integer that ranges from 0 to 255. By default, the value is 192. The greater the value is, the lower the priority is. |
Usage Scenario
An RP is the core of a PIM-SM (IPv6) domain, and therefore a C-RP must be able to communicate with the other devices in the PIM-SM (IPv6) domain. It is recommended that you configure a C-RP on the device that aggregates multicast traffic and reserve enough bandwidth between this device and each of the other devices in the PIM-SM (IPv6) domain.
The rules used to elect an RP from multiple C-RPs are as follows, in descending order of precedence:
The C-RP with the longest mask length of the served group address range matching the multicast group that users have joined wins.
The C-RP with highest priority wins.
The C-RP with the largest hash value wins.
The C-RP with the largest IPv6 address wins.
Prerequisites
IPv6 multicast routing has been enabled globally using the multicast ipv6 routing-enable command in the system view.
Configuration Impact
The group-policy basic-acl6-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-IPv6 view because this command specifies an interface address. If this command is run several times on the same interface, only the latest configuration is valid.
Precautions
If PIM-SM (IPv6) is disabled on an interface, the interface can be configured as a C-RP but the configuration does not take effect.
group-policy basic-acl6-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.
For the IPv6 numbered ACL, in the ACL6 view, you can set the address range of multicast groups that are serviced by the candidate RP by specifying the source parameter in the rule command.
For the IPv6 Named ACL, in the ACL6 view, you can set the address range of multicast groups that are serviced by the candidate RP by specifying the destination parameter in the rule command.
If you want the switch to function as C-RPs in multiple BSR administrative domains, you need to specify the scope ID of each BSR administrative domain. For each scope ID, the settings of advertisement-interval interval, priority priority-value, and holdtime interval will overwrite the global settings in the PIM view.