Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityIntermediate

IGMP versions and IGMP snooping: how hosts join groups and switches stop flooding

In short: Hosts use IGMP to tell the local router which multicast groups they want. IGMPv2 added fast leave messages and IGMPv3 added source filtering for SSM. Switches use IGMP snooping to learn which ports want each group, so streams are not flooded everywhere. Snooping only works reliably when a router or an IGMP querier is sending regular queries on the VLAN.

IGMP versions

  • IGMPv1: hosts send a membership report to join. There is no leave message, so the router only stops forwarding after several queries go unanswered (minutes).
  • IGMPv2: adds a Leave Group message and group-specific queries, so a stream stops a few seconds after the last viewer leaves. Still the most common version on many networks.
  • IGMPv3: lets a host say "I want group G, but only from source S" (or "from anyone except S"). This is needed for source-specific multicast. Windows, macOS, Linux and most set-top boxes support it.

On a Cisco router interface you choose the version with ip igmp version 3. The router acts as the querier: it sends general queries every 60 seconds by default, and hosts answer for the groups they still want.

Joining a group with IGMP snoopingHostsends IGMPreportSwitchsnoops thereportRouter orqueriersends queriesStreamonly to joinedportsLeaveport removed
Figure 1. The switch learns which ports want each group by listening to IGMP, and needs a querier to keep that information fresh.

Why switches need snooping

A basic switch treats multicast frames like broadcasts and floods them to every port in the VLAN. One 8 Mbps video stream becomes 8 Mbps on every port, including Wi-Fi access points, which then send it over the air at low rates. IGMP snooping makes the switch read IGMP messages passing through it, build a table of "group to ports", and forward each stream only to ports with receivers and to ports leading to multicast routers (mrouter ports).

Snooping is enabled by default on Cisco Catalyst switches, but you should check it, because some platforms and other vendors ship with it off.

The querier problem

Snooping entries time out if nobody refreshes them. Normally the multicast router on the VLAN sends queries, and hosts' replies keep the switch's table up to date. On a VLAN with no multicast router (for example, an imaging VLAN where the server and clients are on the same subnet), nothing sends queries, entries expire, and streams either stop or start flooding again. The fix is to make one switch the snooping querier:

ip igmp snooping
ip igmp snooping vlan 300
ip igmp snooping querier
ip igmp snooping vlan 300 querier address 10.30.0.2
interface range GigabitEthernet1/0/1 - 24
 ip igmp snooping vlan 300 immediate-leave

immediate-leave removes a port from the group as soon as a leave arrives. Only use it on ports with one receiver each, such as a set-top box port, because otherwise other viewers on the same port would lose the stream.

Checking it

  • show ip igmp snooping groups: which ports have joined which groups.
  • show ip igmp snooping mrouter: which ports lead to a multicast router.
  • show ip igmp snooping querier: who the querier is on each VLAN.
  • On the router: show ip igmp groups and show ip igmp interface.

Real-world example: imaging that stopped halfway

An IT team used multicast imaging to rebuild 60 lab PCs at once. Every session stalled after about four minutes. The imaging server and PCs were on one VLAN with no router, so there was no IGMP querier. The switch's snooping entries timed out and the stream stopped reaching the PCs. Enabling the snooping querier on the core switch for that VLAN fixed it.

Practice

Which IGMP version added the Leave Group message?
IGMPv2.
Which IGMP version is required for source-specific multicast?
IGMPv3.
Why might multicast stop working on a VLAN that has no multicast router?
Nothing sends IGMP queries, so IGMP snooping entries time out; an IGMP snooping querier is needed.

Key takeaways

  • IGMP lets hosts join and leave multicast groups on their local network.
  • IGMPv2 adds fast leave; IGMPv3 adds source filtering for SSM.
  • IGMP snooping stops switches flooding multicast to every port.
  • A VLAN without a multicast router needs an IGMP snooping querier.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: