< Home

source-policy (IPv4)

Function

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.

Format

source-policy acl-number

undo source-policy

Parameters

Parameter Description Value
acl-number Specifies number of the basic or advanced ACL. The value is an integer that ranges from 2000 to 3999.

Views

PIM view of public network instance or PIM view of VPN instance

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >