source-policy (PIM view)
Use source-policy to configure a multicast source policy.
Use undo source-policy to restore the default.
Syntax
source-policy ipv4-acl-number
undo source-policy
Default
No multicast source policy exists. The device does not filter multicast data packets.
Views
PIM view
Predefined user roles
network-admin
Parameters
ipv4-acl-number: Specifies an IPv4 basic or advanced ACL number in the range of 2000 to 3999.
Usage guidelines
A multicast source policy filters multicast data packets to control information available to downstream receivers.
When you configure a rule in the IPv4 ACL, follow these restrictions and guidelines:
For the rule to take effect, do not specify the vpn-instance vpn-instance option.
In a basic ACL, the source source-address source-wildcard option specifies a source IP address.
In an advanced ACL, the source source-address source-wildcard option specifies a source IP address. The destination dest-address dest-wildcard option specifies a multicast group address.
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 multicast source policy on the public network to accept multicast data from source 10.10.1.2 and to deny multicast data from source 10.10.1.1.
<Sysname> system-view [Sysname] acl basic 2000 [Sysname-acl-ipv4-basic-2000] rule permit source 10.10.1.2 0 [Sysname-acl-ipv4-basic-2000] rule deny source 10.10.1.1 0 [Sysname-acl-ipv4-basic-2000] quit [Sysname] pim [Sysname-pim] source-policy 2000