< Home

source-policy (IPv6)

Function

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.

Format

source-policy acl6-number

undo source-policy

Parameters

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

Views

PIM-IPv6 view

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

IPv6 multicast routing has been enabled globally using the multicast ipv6 routing-enable command in the system view.

Configuration Impact

For the numbered ACL, the source-policy command and the acl ipv6acl ipv6 command are used together.
  • 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).

Example

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