The source-policy command configures a FW to filter received multicast data packets according to source addresses or source/group addresses.
The undo source-policy command deletes the configuration.
| Parameter | Description | Value |
|---|---|---|
acl-number |
Specifies number of the basic or advanced ACL. |
The value is an integer that ranges from 2000 to 3999. |
By default, a FW does not filter received multicast data packets according to source addresses or source/group addresses.
If source-policy and the basic ACL are applied, all multicast data packets received should match the source address. Packets that do not pass the filtering are discarded.
If source-policy and the advanced ACL are used, the source addresses and group addresses of all received multicast data packets should be matched. Packets that do not pass the filtering are discarded.
This command is also used to filter the multicast data encapsulated in Register messages.
In the basic ACL view, specify the source parameter in the rule command.
In the advanced ACL view, specify the source parameter in the rule command.
In the advanced ACL view, specify the destination parameter in the rule command to set the multicast group address range.
This command is cyclical. The latest command overwrites the previous one, and takes effect.
# Configure a FW 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.
<sysname> system-view
[sysname] acl number 2001
[sysname-acl-basic-2001] rule deny source 10.10.1.1 0
[sysname-acl-basic-2001] quit
[sysname] multicast routing-enable
[sysname] pim
[sysname-pim] source-policy 2001