Configuring IGMP On-Demand
Context
In a standard IGMP working process, the querier periodically sends Query messages and collects group membership information based on Report and Leave messages sent from hosts. If group members on a network seldom change, you can configure IGMP on-demand on the querier. IGMP on-demand enables the querier to maintain group memberships based on hosts' requirements, without sending Query messages. This function reduces the number of IGMP messages exchanged between the querier and hosts, conserving bandwidth on the network.
After you configure IGMP on-demand on an interface of the router:
- The interface no longer sends IGMP Query messages.
- The router creates IGMP group entries after receiving IGMP Report messages. The entries will never age out.
- The router deletes a group entry immediately after receiving an IGMP Leave message for the group.
IGMP on-demand applies only to IGMPv2 and IGMPv3.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run igmp on-demand
IGMP on-demand is enabled on the interface. The interface no longer sends IGMP Query messages, and IGMP group entries on the interface will never age out.
By default, an interface periodically sends Query messages and participates in querier election.
If dynamic IGMP entries have been generated on the querier, run the reset igmp group command to clear these dynamic IGMP entries before running the igmp on-demand command.