The igmp ip-source-policy command enables filtering of IGMP Report/Leave messages based on source addresses.
The undo igmp ip-source-policy command disables filtering of IGMP Report/Leave messages based on source addresses.
By default, the switch does not filter IGMP Report/Leave messages based on source addresses.
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 that ranges from 2000 to 2999. |
GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, GE sub-interface view, XGE sub-interface view, MultiGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, Eth-Trunk sub-interface view, VLANIF interface view, loopback interface view
Usage Scenario
IGMP runs on member hosts and their directly connected multicast devices. A multicast device processes all received Report/Leave messages. For security purposes, you can configure the multicast device to filter Report/Leave messages received on an interface.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
IGMP Report/Leave messages are encapsulated in IP packets. The igmp ip-source-policy command configures the switch to check the source address in the IP header of each received Report/Leave message. The switch filters Report/Leave messages based on the following rules (if ACL rules are not configured):
If you have specified an ACL rule, the interface filters out the IGMP Report/Leave messages whose source addresses do not match the ACL rule.
The igmp ip-source-policy command works with the acl command. For a numbered ACL, you can configure the source address of IGMP messages by specifying the source parameter in the rule command in the basic ACL view.
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] igmp ip-source-policy
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] acl number 2001 [HUAWEI-acl-basic-2001] rule permit source 10.10.1.1 0 [HUAWEI-acl-basic-2001] quit [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] igmp ip-source-policy 2001
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] igmp ip-source-policy