148
Use undo pim neighbor-policy to restore the default.
Syntax
pim neighbor-policy acl-number
undo pim neighbor-policy
Default
PIM hello policies are not configured, and all received hello messages are considered legal.
Views
Interface view
Predefined user roles
network-admin
Parameters
acl-number: Specifies an IPv4 basic ACL number in the range of 2000 to 2999.
Usage guidelines
You can use this command to guard against hello message spoofing.
In an IPv4 basic ACL, the source keyword matches the source address in hello messages.
If you specify the vpn-instance keyword in an ACL rule, the rule does not take effect. The other optional
parameters except the time-range keyword and the fragment keyword in the ACL rules are ignored.
Examples
# Configure a PIM hello policy on VLAN-interface 100 so that only the devices on the 10.1.1.0/24 subnet
can become PIM neighbors of this switch.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 10.1.1.0 0.0.0.255
[Sysname-acl-basic-2000] quit
[Sysname] interface vlan-interface 100
[Sysname-Vlan-interface100] pim neighbor-policy 2000
pim passive
Use pim passive to enable PIM passive mode on an interface.
Use undo pim passive to restore the default.
Syntax
pim passive
undo pim passive
Default
The PIM passive mode is disabled for an interface.
Views
Interface view