The igmp enable command enables IGMP on an interface.
The undo igmp enable command disables IGMP on an interface.
By default, IGMP is disabled on an interface.
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
User hosts and Layer 3 multicast devices directly connected to user network segments must run IGMP. A multicast device can process IGMP messages sent from user hosts only after IGMP is enabled on the interfaces connected to user network segments.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
If IGMPv1 is run on an interface, you must enable pim dm or pim sm. This is because IGMPv1 does not the querier election. In IGMPv1, the querier is specified by Protocol Independent Multicast (PIM).
If IGMPv2/v3 is run on an interface, pim dm or pim sm is recommended. Although IGMPv2/v3 supports the querier election, enabling PIM improves the system stability.
Precautions
Running the igmp enable command failed on the VLANIF interface because Layer 2 multicast querier or report-suppress is enabled for this VLAN.
# Enable IGMP on VLANIF100 connected to a user network segment.
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] igmp enable
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] igmp enable