The source-policy command configures a policy for filtering multicast data packets based on source addresses or based on source and group addresses.
The undo source-policy command restores the default configuration.
By default, the Router does not filter received multicast data packets based on source addresses or based on source and group addresses.
Parameter | Description | Value |
---|---|---|
acl6-number |
Specifies number of a basic or an advanced IPv6 ACL. |
The value is an integer ranging from 2000 to 3999. |
acl6-name acl6-name |
Specifies the name of an IPv6 ACL. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter (a to z or A to Z, case sensitive). |
Usage Scenario
To implement data flow control and limit information that downstream receivers can obtain, run the source-policy command to configure a policy using which the Router filters received multicast data packets based on source addresses or based on source and group addresses. The Router forwards a received multicast data packet only if it is permitted by an ACL rule defined in the filter policy, thus improving system security.
The source-policy command configuration also applies to multicast data packets encapsulated in Register messages.Prerequisites
The multicast routing function has been enabled using the multicast ipv6 routing-enable command in the public network instance view.
Configuration Impact
If the source-policy command is run more than once, the latest configuration overrides the previous one.
<HUAWEI> system-view [~HUAWEI] acl ipv6 number 2001 [*HUAWEI-acl6-basic-2001] rule permit source 2001:db8::1 128 [*HUAWEI-acl6-basic-2001] rule deny source 2001:db8::2 128 [*HUAWEI-acl6-basic-2001] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] pim-ipv6 [*HUAWEI-pim6] source-policy 2001
<HUAWEI> system-view [~HUAWEI] acl ipv6 name myacl6 [*HUAWEI-acl6-advance-myacl6] rule permit ipv6 source 2001:db8::1 128 [*HUAWEI-acl6-advance-myacl6] rule deny ipv6 source 2001:db8::2 128 [*HUAWEI-acl6-advance-myacl6] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] pim-ipv6 [*HUAWEI-pim6] source-policy acl6-name myacl6