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:

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