The igmp on-demand command configures the IGMP group records on an interface not to time out.
The undo igmp on-demand command restores the default configuration.
By default, the dynamic IGMP group records on an interface age.
When using the igmp on-demand command, note the following:
This command applies to IGMPv2 and IGMPv3 only.
This command can be used on the querier only.
If there are records about dynamic join to multicast groups, first run the reset igmp group command to clear all the IGMP group records, and then run the igmp on-demand command.
After the igmp on-demand command is used, the following situations occur:
The records about dynamic join to multicast groups on the interface never time out.
The interface does not send any IGMP Query message to the network.
If the interface receives an IGMP Leave message, the interface deletes the related group record immediately.
Before running the undo igmp on-demand command, run the reset igmp group command to clear the IGMP group records.
You must run the multicast routing-enable command to enable the multicast function before using the command.