The pim join-policy command enables the system to filter join information in Join/Prune messages.
The undo pim join-policy command restores the default setting.
pim join-policy { asm basic-acl-number | ssm advanced-acl-number | advanced-acl-number }
undo pim join-policy [ asm | ssm ]
| Parameter | Description | Value |
|---|---|---|
| asm | Filters join information, with the group address in the ASM group address range. | - |
| basic-acl-number | Specifies the basic ACL number. | The value is an integer that ranges from 2000 to 2999. |
| ssm | Filters join messages, with the group addresses within the SSM group address range and specified source address. | - |
| advanced-acl-number | Specifies the advanced ACL number. | The value is an integer that ranges from 3000 to 3999. |
By default, join information in Join/Prune messages is not filtered.
This command is valid for only PIM-SM.
A Join/Prune message received by an interface may contain both join information and prune information. After this command is configured, the FW creates PIM entries for only the join information that matches the filtering rules, which prevents illegal users from accessing the information.
If asm is specified, in the basic ACL view, you can set the multicast group address range of join information by specifying the source parameter in the rule command.
If ssm is specified, in the advanced ACL view, you can set the source address range and multicast group address range of join information by respectively specifying the source parameter and destination parameter in the rule command.
If asm or ssm is repeatedly configured, the latest configuration overwrites the previous configuration. You can configure both the basic ACL and advanced ACL to filter the join information with the group addresses in the ASM and SSM group address range respectively .
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 225.1.0.0 0.0.255.255 [sysname-acl-basic-2001] quit [sysname] interface GigabitEthernet 0/0/0 [sysname-GigabitEthernet0/0/0] pim join-policy asm 2001