Configuring IGMP Snooping (CLI Procedure)
IGMP snooping regulates multicast traffic in a switched network. With IGMP snooping enabled, a LAN switch monitors the IGMP transmissions between a host (a network device) and a multicast router, keeping track of the multicast groups and associated member ports. The switch uses that information to make intelligent multicast-forwarding decisions and forward traffic to the intended destination interfaces.
You can configure IGMP snooping on one or more VLANs to allow the switch to examine IGMP packets and make forwarding decisions based on packet content. By default, IGMP snooping is enabled on EX Series switches.
![]() | Note: You cannot configure IGMP snooping on a secondary VLAN. |
To enable IGMP snooping and configure individual options as needed for your network by using the CLI:
- Enable IGMP snooping on a VLAN:
[edit protocols]
user@switch# set igmp-snooping vlan employee-vlan - Configure the limit for the number of multicast
groups allowed on the ge-0/0/1 interface to 50.
[edit protocols]
user@switch# set igmp-snooping vlan employee-vlan interface ge-0/0/1 group-limit 50 - Configure the switch to immediately remove a group
membership from an interface when it receives a leave message from
that interface without waiting for any other IGMP messages to be exchanged
(IGMPv2 only):
[edit protocols]
user@switch# set igmp-snooping vlan employee-vlan immediate-leave - Statically configure IGMP group membership on a
port:
[edit protocols]
user@switch# set igmp-snooping vlan employee-vlan interface ge-0/0/3.0 static (IGMP Snooping) group 225.100.100.100 - Statically configure an interface as a switching
interface toward a multicast router (the interface to receive multicast
traffic):
[edit protocols]
user@switch# set igmp-snooping vlan employee-vlan interface ge-0/0/2.0 multicast-router-interface - Change the number of timeout intervals the switch
waits before timing out a multicast group to 4:
[edit protocols]
user@switch# set igmp-snooping vlan employee-vlan robust-count 4

