The igmp on-demand command enables the IGMP on-demand function. This function enables a querier to maintain group memberships according to requirements of group members, without sending Query messages. After IGMP on-demand is enabled on an interface, dynamic IGMP entries on the interface will never age out.
The undo igmp on-demand command restores the default configuration.
By default, a querier does not maintain group memberships according to requirements of group members, and dynamic entries are aged out when the aging time expires.
GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, VLANIF interface view, loopback interface view
Usage Scenario
In a standard IGMP working process, a querier sends General Query messages periodically and collects group membership information based on received Report and Leave messages. Multicast group members respond to every Query message they receive. After IGMP on-demand is configured on the querier, the querier does not send Query messages, reducing IGMP packets exchanged between the querier and member hosts.
The IGMP on-demand function enables a querier to maintain group memberships based on requirements of members, without sending Query messages.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
The interface does not send IGMP Query messages
IGMP group entries are generated after the interface receives IGMP Report messages and will never age out.
When the interface receives an IGMP Leave message, it deletes the corresponding IGMP entry.
# Enable the IGMP on-demand function on VLANIF100.
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] igmp on-demand
<HUAWEI> system-view [HUAWEI] multicast routing-enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] igmp on-demand