register-policy (PIM view)
Use register-policy to configure a PIM register policy.
Use undo register-policy to restore the default.
Syntax
register-policy ipv4-acl-number
undo register-policy
Default
No PIM register policy exists, and all PIM register messages are regarded as legal.
Views
PIM view
Predefined user roles
network-admin
Parameters
ipv4-acl-number: Specifies an IPv4 advanced ACL number in the range of 3000 to 3999.
Usage guidelines
A PIM register policy enables an RP to filter PIM register messages so that the RP is designated only to multicast groups permitted by the ACL.
When you configure a rule in the IPv4 advanced 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 source address.
The destination dest-address dest-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 multiple times, the most recent configuration takes effect.
Examples
# Configure a PIM register policy on the public network. Then, the device accepts only register messages from the sources on the subnet 10.10.0.0/16 to the groups on the subnet 225.1.0.0/16.
<Sysname> system-view [Sysname] acl advanced 3000 [Sysname-acl-ipv4-adv-3000] rule permit ip source 10.10.0.0 0.0.255.255 destination 225.1.0.0 0.0.255.255 [Sysname-acl-ipv4-adv-3000] quit [Sysname] pim [Sysname-pim] register-policy 3000