Configuring basic IGMP snooping functions is the prerequisite for implementing Layer 2 multicast. Configuring basic IGMP snooping functions involves enabling IGMP snooping, setting the version for IGMP messages that can be processed by IGMP snooping, and setting the IGMP snooping forwarding mode.
After IGMP snooping is enabled on a Layer 2 device, the Layer 2 device listens to IGMP Report messages exchanged between the connected Layer 3 device and user hosts and uses these IGMP Report messages to set up mappings between interfaces and multicast group addresses. Based on the mappings, the Layer 2 device forwards received multicast data to connected member ports.
The system view is displayed.
IGMP snooping is enabled globally.
Usage Scenario |
Configuration Procedure |
---|---|
Enabling IGMP snooping on a specified VLAN |
|
Enabling IGMP snooping on multiple VLANs |
Run the igmp-snooping enable vlan { vlan-id1 [ to vlan-id2 ] } & <1-10> command to enable IGMP snooping on multiple VLANs. |
Enabling IGMP snooping on a specified VSI |
|
The version of IGMP messages that can be processed by IGMP snooping is set.
IGMP snooping can process IGMPv1, IGMPv2, and IGMPv3 messages.
If the IGMP version number is set to 1, only IGMPv1 messages can be processed.
If the IGMP version number is set to 2, both IGMPv1 and IGMPv2 messages can be processed.
A policy is configured to filter Report messages in a VLAN or VSI. The configuration enables you to limit users that can enjoy multicast services.
To improve multicast service deployment security, configure a policy to filter out IGMP Report messages sent by specific hosts.
The configuration is committed.