23
Enabling IGMP snooping
When you enable IGMP snooping, follow these guidelines:
• You must enable IGMP snooping globally before you enable it in a VLAN.
• After you enable IGMP snooping in a VLAN, do not enable IGMP or PIM on the corresponding
VLAN interface.
• When you enable IGMP snooping in a specified VLAN, IGMP snooping works only on the ports in
this VLAN.
To enable IGMP snooping:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable IGMP snooping globally
and enter IGMP-snooping view.
igmp-snooping Disabled by default
3. Return to system view.
quit N/A
4. Enter VLAN view.
vlan vlan-id N/A
5. Enable IGMP snooping in the
VLAN.
igmp-snooping enable Disabled by default
Specifying the version of IGMP snooping
Different versions of IGMP snooping can process different versions of IGMP messages:
• IGMPv2 snooping can process IGMPv1 and IGMPv2 messages, but cannot process IGMPv3
messages, which will be flooded in the VLAN.
• IGMPv3 snooping can process IGMPv1, IGMPv2 and IGMPv3 messages.
If you change IGMPv3 snooping to IGMPv2 snooping, the system:
• Clears all IGMP snooping forwarding entries that are dynamically added.
• Keeps static IGMPv3 snooping forwarding entries (*, G).
• Clears static IGMPv3 snooping forwarding entries (S, G), which will be restored when IGMP
snooping is switched back to IGMPv3 snooping.
For more information about static joins, see "Configuring static ports."
To specify the version of IGMP snooping:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter VLAN view.
vlan vlan-id N/A
3. Specify the version of IGMP
snooping.
igmp-snooping version
version-number
Version 2 by default