Lessons · Network switches · IGMP snooping
Multicast, and the switch that knows who asked
IGMP snooping listens to join messages and forwards multicast only to the ports that asked for it. Without it, a switch floods multicast like a broadcast.
Hone is a place to practise programming. This is one of its lessons, written out in full and free to read without an account.
What it is for
An EtherNet/IP producer multicasts every few milliseconds. Flooded to every port in the VLAN, that is every device on the cell processing traffic meant for somebody else, and devices with deadlines start missing them.
How to think about it
It is ON by default, which is the fact worth carrying. When a plant network goes strange after somebody 'tidied up', this is one of the first lines to look for in the configuration.
Worked example
enableThe # prompt.
configure terminalInto configuration mode.
vlan 20The cell's VLAN.
name CELL4Named.
exitOut.
no ip igmp snooping vlan 20Off for that VLAN. This is the change that causes the fault, reproduced.
endOut.
show running-configThe no line is there. A default is never printed, so a line about snooping in a config means somebody turned something OFF.
configure terminalBack in to fix it.
ip igmp snooping vlan 20On again, and the line disappears from the configuration because it is the default once more.
endOut.
show running-configNo snooping line at all. That is what correct looks like here: nothing.
Your turn
Turn snooping back on for VLAN 20.
ip snooping vlan 20
Console into a switch
The trap
Reading a config, seeing nothing about snooping, and concluding it is off. Nothing means the default, and the default is on.