The source-policy command configures the switch 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 |
---|---|---|
acl6-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
IPv6 multicast routing has been enabled globally using the multicast ipv6 routing-enable command in the system view.
Configuration Impact
In the basic ACL6 view, you can set the source address range of multicast packets by specifying the source parameter in the rule command.
In the advanced ACL6 view, you can set the source address range of multicast packets by specifying the source parameter in the rule command, and set the multicast group IPv6 address range by specifying the destination parameter in the rule command.
The configurations of the named ACL and advanced ACL are the same, and can filter both source addresses and group addresses. A named ACL can also be configured with the time-range parameter.
Precautions
This command is valid for both PIM-DM (IPv6) and PIM-SM (IPv6).
# In the public network instance, configure the switch to receive multicast data packets with the source address of 3121::1 and to discard those with the source address of FC00:0:0:3121::2.
<HUAWEI> system-view [HUAWEI] acl ipv6 number 2001 [HUAWEI-acl6-basic-2001] rule permit source fc00:0:0:3121::1 128 [HUAWEI-acl6-basic-2001] rule deny source fc00:0:0:3121::2 128 [HUAWEI-acl6-basic-2001] quit [HUAWEI] multicast ipv6 routing-enable [HUAWEI] pim-ipv6 [HUAWEI-pim6] source-policy 2001