The pim neighbor-policy command configures a policy for filtering PIM neighbors on an interface.
The undo pim neighbor-policy command restores the default setting.
| Parameter | Description | Value |
|---|---|---|
| basic-acl-number | Specifies the basic ACL number. | The value is an integer that ranges from 2000 to 2999. |
By default, PIM neighbors on the interface are not filtered.
This command is valid for both PIM-DM and PIM-SM.
To prevent an unknown FW from being involved in the PIM protocol and prevent the FW from becoming the DR, filtering PIM neighbors is required. After this command is configured, an interface sets up neighbor relationships with the addresses matching the filtering rules and deletes the neighbors that do not match with the filtering rules.
When configuring the neighbor filtering function on the interface, you must also configure the neighbor filtering function on the corresponding FW that sets up the neighbor relationship with the interface.
You must use the pim neighbor-policy command and the acl command together. In the ACL view, you can set the address range of PIM neighbors by specifying the source parameter in the rule command.
You must run the multicast routing-enable command to enable the multicast function before using the command.
<sysname> system-view [sysname] multicast routing-enable [sysname] acl number 2001 [sysname-acl-basic-2001] rule permit source 4.4.4.4 0.0.0.0 [sysname-acl-basic-2001] quit [sysname] interface GigabitEthernet 0/0/0 [sysname-GigabitEthernet0/0/0] pim neighbor-policy 2001