The source-policy command configures a policy to filter received multicast data packets based on source addresses or source-group addresses.
The undo source-policy command deletes the configuration.
By default, a switch does not filter received multicast data packets based on source addresses or source-group addresses.
Parameter | Description | Value |
---|---|---|
acl-number | Specifies number of the basic or advanced ACL. | The value is an integer that ranges from 2000 to 3999. |
Usage Scenario
To prevent unauthorized source information from being advertised on the PIM network, run the source-policy command to configure the switch to filter received multicast data packets based on source addresses or source/group addresses.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Configuration Impact
If a basic ACL is referenced in the policy, multicast data packets that do not match the specified source addresses are discarded.
If an advanced AC is referenced in the policy, multicast data packets that do not match the specified group-source addresses are discarded.
Precautions
This command is valid for both PIM-DM and PIM-SM.
# In the PIM view of public network instance, configure the switch to receive multicast data packets with the source address of 10.10.1.2 and to discard those with the source address of 10.10.1.1.
<HUAWEI> system-view [HUAWEI] acl number 2001 [HUAWEI-acl-basic-2001] rule permit source 10.10.1.2 0 [HUAWEI-acl-basic-2001] rule deny source 10.10.1.1 0 [HUAWEI-acl-basic-2001] quit [HUAWEI] multicast routing-enable [HUAWEI] pim [HUAWEI-pim] source-policy 2001