static-rp (PIM view)

Use static-rp to configure a static RP.

Use undo static-rp to delete a static RP.

Syntax

static-rp rp-address [ ipv4-acl-number | bidir | preferred ] *

undo static-rp rp-address

Default

No static RPs exist.

Views

PIM view

Predefined user roles

network-admin

Parameters

rp-address: Specifies the IP address of the static RP. The IP address must be valid and cannot be on the subnet 127.0.0.0/8. For a static PIM-SM RP, you must specify a used IP address. For a static BIDIR-PIM RP, you can specify an unused IP address.

ipv4-acl-number: Specifies an IPv4 basic ACL number in the range of 2000 to 2999. If you specify an ACL, the static RP is designated only to multicast groups that the ACL permits. The static RP is designated to all multicast groups when one of the following conditions exists:

bidir: Configures the static RP as a BIDIR-PIM RP. If you do not specify this keyword, this command configures the static RP as a PIM-SM RP.

preferred: Gives priority to the static RP if a dynamic RP also exists on the network. The dynamic RP takes effect only when the static RP fails. If you do not specify this keyword, the dynamic RP has priority, and the static RP takes effect only when the dynamic RP fails.

Usage guidelines

You do not need to enable PIM on an interface that acts as a static RP.

When you configure a rule in the IPv4 basic ACL, follow these restrictions and guidelines:

When rules in the ACL used by a static RP change, new RPs are dynamically elected for all multicast groups.

You can configure multiple static RPs by using this command multiple times. However, if you specify the same static RP address or use the same ACL in the command, the most recent configuration takes effect. If you configure multiple static RPs for the same multicast group, the static RP with the highest IP address is used.

Examples

# Configure the interface with IP address 11.110.0.6 as a static RP for multicast group range 225.1.1.0/24 and give priority to this static RP on the public network.

<Sysname> system-view
[Sysname] acl basic 2001
[Sysname-acl-ipv4-basic-2001] rule permit source 225.1.1.0 0.0.0.255
[Sysname-acl-ipv4-basic-2001] quit
[Sysname] pim
[Sysname-pim] static-rp 11.110.0.6 2001 preferred

Related commands

display pim rp-info