596 CHAPTER 43: MLD SNOOPING CONFIGURATION
MLD Snooping 
Configuration 
Examples
Simulated Joining Network requirements
As shown in Figure 177, Router A connects to the IPv6 multicast source through 
GigabitEthernet 1/0/2 and to Switch A through GigabitEthernet 1/0/1. Router A is 
the MLD querier on the subnet.
Perform the following configuration so that multicast data can be forwarded 
through GigabitEthernet 1/0/3 and GigabitEthernet 1/0/4 even if Host A and Host 
B temporarily stop receiving IPv6 multicast data for some unexpected reasons.
Network diagram
Figure 177   Network diagram for simulated joining configuration
 
Configuration procedure
1 Enable IPv6 forwarding and configure the IPv6 address of each interface
Enable IPv6 forwarding and configure an IPv6 address and prefix length for each 
interface as per Figure 177. The detailed configuration steps are omitted.
2 Configure Router A
# Enable IPv6 multicast routing, enable IPv6 PIM-DM on each interface, and enable 
MLDv1 on GigabitEthernet 1/0/1.
<RouterA> system-view
[RouterA] multicast ipv6 routing-enable
[RouterA] interface GigabitEthernet 1/0/1
[RouterA-GigabitEthernet1/0/1] mld enable
[RouterA-GigabitEthernet1/0/1] pim ipv6 sm
[RouterA-GigabitEthernet1/0/1] quit
[RouterA] interface GigabitEthernet 1/0/2
[RouterA-GigabitEthernet1/0/2] pim ipv6 sm
[RouterA-GigabitEthernet1/0/2] quit 
3 Configure Switch A
Source
Router A Switch A
Receiver
Receiver
Host B
Host A
Host C
GE1/0/1
GE1/0/4
GE1/02
GE1/0/3
MLD querier
1::1/64
GE1/0/1
2001::1/64
GE1/0/2
1::2/64
VLAN100