Configuring basic MLD snooping functions involves enabling MLD snooping and setting the MLD version. Those basic functions need to be configured before you configure other MLD snooping functions.
After MLD snooping is enabled on a Layer 2 device, the device listens to and analyzes MLD Report messages sent from user hosts to a Layer 3 device. The Layer 2 device then uses the message information to set up the mapping between interfaces and multicast group addresses. After receiving the data of a multicast group, the Layer 2 device reads the mapping and forwards the data only to the interfaces connected to users interested in the data.
The system view is displayed.
MLD snooping is enabled globally.
Usage Scenario |
Configuration Procedure |
---|---|
Enabling MLD snooping in a specified VLAN |
|
Enabling MLD snooping in multiple VLANs |
Run the mld-snooping enable vlan { vlan-id1 [ to vlan-id2 ] } & <1-10> command to enable MLD snooping in multiple VLANs. |
Enabling MLD snooping in a specified VSI in a VPLS scenario |
|
The version of MLD messages that can be processed in MLD snooping is set.
MLD snooping can process both MLDv1 and MLDv2 messages.
If the version number is set to 1, only MLDv1 can be processed.
If the version number is set to 2, both MLDv1 and MLDv2 can be processed.
The configuration is committed.