The static-rp command configures a static RP.
The undo static-rp command restores the default configuration.
By default, no static RP is configured.
Parameter | Description | Value |
---|---|---|
rp-address | Specifies address of a static RP. | The address is in dotted decimal notation. It must be a valid unicast IP address and cannot be configured as an address of network segment 127.0.0.0/8. |
basic-acl-number | Specifies the basic ACL that is used to control the range of multicast groups served by a static RP. | The value is an integer that ranges from 2000 to 2999. |
preferred | Indicates that the static RP is preferred. | - |
Usage Scenario
When only one RP exists on a network, you can manually specify the static RP address and do not need to configure dynamic RP. This saves the bandwidth used for information exchange between the C-RPs and the BSR.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Configuration Impact
If the static RP address is the address of an Up interface on the local device, the local device works as the static RP. PIM does not need to be enabled on the interface where the static RP address is located.
If no ACL is specified, the static RP serves all the multicast groups of 224.0.0.0/4. If an ACL is specified but no rule is configured in the ACL, the static RP serves all the groups of 224.0.0.0/4. If ACL rules are configured, the static RP serves only the multicast groups permitted by the ACL.
If the static-rp command does not contain preferred, devices apply the BSR mechanism to elect a dynamic RP. If dynamic RP is not configured or the dynamic RP is invalid, the static RP becomes valid. If the static-rp command contains preferred, the static RP is preferred over the dynamic RP.
If you run this command multiple times, multiple static RPs are configured. If multiple static RPs serve the same group, the RP with the largest IP address is selected to serve the group. If you specify the same RP address when running the static-rp command multiple times, the latest RP takes effect.
Precautions
Up to 50 static RPs can be configured by using this command, but an ACL cannot be applied to multiple static RPs. If no ACL is referenced, only one static RP can be configured.
To ensure normal operating of a static RP, run the static-rp command to configure the same RP information on all devices in the PIM-SM domain.
The static-rp and acl commands are used together. In the ACL view, when the rule command is used to configure a filtering rule, you can set the address range of multicast groups that are served by the static RP by specifying the source parameter in the rule command. The filtering rule is effective only with the source parameter and the time period specified by the time-range parameter.
This command is valid only for PIM-SM.
# In the PIM view of public network instance, configure the switch with address 10.110.0.6 as a static RP serving the groups permitted by ACL 2001, and configure the static RP to be preferred.
<HUAWEI> system-view [HUAWEI] acl number 2001 [HUAWEI-acl-basic-2001] rule permit source 225.1.0.0 0.0.255.255 [HUAWEI-acl-basic-2001] quit [HUAWEI] multicast routing-enable [HUAWEI] pim [HUAWEI-pim] static-rp 10.110.0.6 2001 preferred