The igmp query ip-source-policy command configures source address-based IGMP Query message filtering.
The undo igmp query ip-source-policy command restores the default configuration.
| Parameter | Description | Value |
|---|---|---|
| basic-acl-number | Specifies the number of a basic ACL, which defines the range of source addresses. | The value is an integer ranging from 2000 to 2999. |
By default, no source address-based IGMP Query message filtering is configured.
Usage Scenario
Source address-based IGMP Query message filtering prevents a device from forging IGMP Query messages with small IP addresses to cause the actual querier to become invalid. As a result, group members cannot promptly leave and traffic waste occurs. After you run the igmp query ip-source-policy command to configure source address-based IGMP Query message filtering, the device filters out the IGMP Query messages whose source addresses do not match a specified ACL rule. In this way, querier election is controlled.
IGMP Query messages are encapsulated into IP messages. This command is used to filter the source addresses in IP headers.
After you configure source address-based IGMP Query message filtering on an interface, the interface filters out the IGMP Query messages whose source addresses do not match a specified ACL rule.
Prerequisites
Multicast has been enabled using the multicast routing-enable command.
Configuration Impact
The latest configuration overrides the previous configuration.
Precautions
The igmp query ip-source-policy command works with the acl command. You can configure the source address of IGMP Query messages by specifying the source parameter in the rule command in the basic ACL view.
<sysname> system-view [sysname] multicast routing-enable [sysname] acl number 2001 [sysname-acl-basic-2001] rule permit source 10.10.1.2 0 [sysname-acl-basic-2001] rule deny source 10.10.1.1 0 [sysname-acl-basic-2001] quit [sysname] interface GigabitEthernet 0/0/0 [sysname-GigabitEthernet0/0/0] igmp query ip-source-policy 2001