333
[SwitchB-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4
# Enable the MLD snooping feature and the function of dropping unknown IPv6 multicast data
packets in VLAN 100.
[SwitchB-vlan100] mld-snooping enable
[SwitchB-vlan100] mld-snooping drop-unknown
[SwitchB-vlan100] quit
Configurations of Switch C and Switch D are similar to the configuration of Switch B.
Verifying the configuration
When the MLD snooping querier starts to work, all switches but the querier receive MLD general
queries.
# Display statistics for the MLD messages 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.
Sent 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.
Sent MLDv2 specific queries:0.
Sent MLDv2 specific sg queries:0.
Received error MLD messages:0.
MLD snooping proxying configuration example (in a VLAN)
Network requirements
As shown in
, MLDv1 runs on Router A, and MLDv1 snooping runs on Switch A. Router A
acts as the MLD querier.
Configure MLD snooping proxying on Switch A to meet the following requirements:
•
Switch A forwards MLD reports and done messages on behalf of attached hosts.
•
Switch A responds to MLD queries from Router A and forward the queries to the hosts.