# Create VLAN 100, add GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 into VLAN 100.
[SwitchB] vlan 100
[SwitchB-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4
# Enable the MLD Snooping feature in VLAN 100.
[SwitchB-vlan100] mld-snooping enable
Configurations of Switch C and Switch D are similar to the configuration of Switch B.
Verify the configuration
When the MLD Snooping querier starts to work, all the switches but the querier receive MLD general
queries. Use the display mld-snooping statistics command to view the statistics information of these
MLD messages received.
# View the MLD message statistics on Switch B.
[SwitchB-vlan100] display mld-snooping statistics
Received MLD general queries:3.
Received MLDv1 specific queries:0.
Received MLDv1 reports:12.
Received MLD dones:0.
MLDv1 specific queries:0.
Received MLDv2 reports:0.
Received MLDv2 reports with right and wrong records:0.
Received MLDv2 specific queries:0.
Received MLDv2 specific sg queries:0.
MLDv2 specific queries:0.
MLDv2 specific sg queries:0.
Received error MLD messages:0.
Troubleshooting MLD Snooping
Switch Fails in Layer 2 Multicast Forwarding
A switch fails to implement Layer 2 multicast forwarding.
MLD Snooping is not enabled.
Enter the display current-configuration command to view the running status of MLD Snooping.
If MLD Snooping is not enabled, use the mld-snooping command to enable MLD Snooping
globally, and then use mld-snooping enable command to enable MLD Snooping in VLAN view.
If MLD Snooping is disabled only for the corresponding VLAN, just use the mld-snooping enable
command in VLAN view to enable MLD Snooping in the corresponding VLAN.