The pim ipv6 neighbor-policy command configures a policy for filtering PIM neighbors and sets a range of valid PIM neighbor addresses.
The undo pim ipv6 neighbor-policy command restores the default setting.
By default, no policy is configured for filtering PIM neighbors, and the valid range of PIM neighbor addresses is not limited.
Parameter | Description | Value |
---|---|---|
basic-acl6-number |
Specifies the number of a basic IPv6 ACL. |
The value is an integer ranging from 2000 to 2999. |
acl6-name acl6-name |
Specifies the name of a named basic 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). |
100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Loopback interface view, PW-VE sub-interface view, VE sub-interface view, VLANIF interface view, Virtual template view
Usage Scenario
To protect a Router against pseudo PIM Hello message attacks, run the pim ipv6 neighbor-policy command to set a range of valid PIM neighbor addresses. The Router then discards Hello messages received from devices whose addresses are not in the specified range.
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 pim ipv6 neighbor-policy command is run more than once, the latest configuration overrides the previous one.
After being configured with the pim ipv6 neighbor-policy command, an interface sets up neighbor relationships only with the devices whose IP addresses are in the specified range of valid addresses.Precautions
To make the neighbor filtering function take effect on an interface, this function must be configured on all Routers that set up PIM neighbor relationships with this interface.
<HUAWEI> system-view [~HUAWEI] acl ipv6 number 2001 [*HUAWEI-acl6-basic-2001] rule permit source 2000::1 128 [*HUAWEI-acl6-basic-2001] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] pim ipv6 neighbor-policy 2001
<HUAWEI> system-view [~HUAWEI] acl ipv6 name myacl basic [*HUAWEI-acl6-basic-myacl] rule permit source 2000::1 128 [*HUAWEI-acl6-basic-myacl] quit [*HUAWEI] multicast ipv6 routing-enable [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] pim ipv6 neighbor-policy acl6-name myacl