85
MLDv1 runs on all the receivers and MLDv1 snooping runs on all the switches. Switch A, which is close
to the multicast sources, is chosen as the MLD snooping querier.
To prevent flooding of unknown multicast traffic within the VLAN, configure all the switches to drop
unknown multicast data packets.
Figure 26
Network diagram
Configuration procedure
1.
Configure Switch A:
# Enable IPv6 forwarding, and enable MLD snooping and the function of dropping unknown IPv6
multicast data packets globally.
<SwitchA> system-view
[SwitchA] ipv6
[SwitchA] mld-snooping
[SwitchA-mld-snooping] drop-unknown
[SwitchA-mld-snooping] quit
# Create VLAN 100 and assign Ethernet 1/0/1 through Ethernet 1/0/3 to VLAN 100.
[SwitchA] vlan 100
[SwitchA-vlan100] port ethernet 1/0/1 to ethernet 1/0/3
# Enable MLD snooping in VLAN 100.
[SwitchA-vlan100] mld-snooping enable
# Configure MLD snooping querier feature in VLAN 100.
[SwitchA-vlan100] mld-snooping querier
[SwitchA-vlan100] quit
2.
Configure Switch B:
# Enable IPv6 forwarding, and enable MLD snooping and the function of dropping unknown IPv6
multicast data packets globally.
<SwitchB> system-view
[SwitchB] ipv6
[SwitchB] mld-snooping
[SwitchB-mld-snooping] drop-unknown