16-7
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter16 Configuring IGMP Snooping and M VR Configuring IGMP Snooping
Enabling or Disabling IGMP Snooping
By default, IGMP snooping is globally enabled on the switch. When globally enabled or disabled, it is
also enabled or disabled in all existing VLAN interfaces. IGMP snooping is by default enabled on all
VLANs, but can be enabled and disabled on a per-VLAN basis.
Global IGMP snooping overrides the VLAN IGMP snooping. If global snooping is disabled, you cannot
enable VLAN snooping. If global snooping is enabled, you can enable or disable VLAN snoop ing.
Beginning in privileged EXEC mode, follow these steps to globally enable IGMP snoo ping on the
switch:
To globally disable IGMP snooping on all VLAN interfaces, use the no ip igmp snooping global
configuration command.
Beginning in privileged EXEC mode, follow these steps to enable IGMP snooping on a VLAN interface:
To disable IGMP snooping on a VLAN interface, use the no ip igmp snooping vlan vlan-id global
configuration command for the specified VLAN number.
Setting the Snooping Method
Multicast-capable router ports are added to the forwarding table for every Layer2 multicast entry. The
switch learns of such ports through one of these methods:
Snooping on IGMP queries, Protocol Independent Multicast (PIM) packets, and Distance Vector
Multicast Routing Protocol (DVMRP) packets
Listening to Cisco Group Management Protocol (CGMP) packets from other routers
Statically connecting to a multicast router port with the ip igmp snooping mrouter global
configuration command
You can configure the switch either to snoop on IGMP queries and PIM/DVMRP packets or to listen to
CGMP self-join or proxy-join packets. By default, the switch snoops on PIM /DVMRP packets on all
VLANs. To learn of multicast router ports through only CGMP packets, use the ip igmp snooping vlan
vlan-id mrouter learn cgmp global configuration command. When this command is entered, the router
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip igmp snooping Globally enable IGMP snooping in all existing VLAN interfaces.
Step3 end Return to privileged EXEC mode.
Step4 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 ip igmp snooping vlan vlan-id Enable IGMP snooping on the VLAN interface.
Step3 end Return to privileged EXEC mode.
Step4 copy running-config startup-config (Optional) Save your entries in the configuration file.