The pim neighbor-policy command configures a policy for filtering PIM neighbors and sets a valid range for PIM neighbor addresses.
The undo pim neighbor-policy command restores the default configuration.
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-acl-number |
Specifies the number of a basic ACL. |
The value is an integer ranging from 2000 to 2999. |
acl-name acl-name |
Specifies the name of a named basic 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, Tunnel interface view, VBDIF 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 neighbor-policy command to set a range of valid PIM neighbor addresses. The Router then discards Hello messages received from Routers whose addresses are not in the specified range.
Prerequisites
The multicast routing function has been enabled using the multicast routing-enable command in the public network instance view or VPN instance view.
Configuration Impact
If the pim neighbor-policy command is run more than once, the latest configuration overrides the previous one.
After the pim neighbor-policy command is configured, an interface sets up neighbor relationships only with the devices whose IP addresses are in the specified range of valid addresses.<HUAWEI> system-view [~HUAWEI] acl number 2001 [*HUAWEI-acl4-basic-2001] rule permit source 10.1.1.0 0.0.0.255 [*HUAWEI-acl4-basic-2001] quit [*HUAWEI] multicast routing-enable [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] pim neighbor-policy 2001