83
# Enable IPv6 multicast routing globally.
<RouterD> system-view
[RouterD] ipv6 multicast routing
[RouterD-mrib6] quit
# Enable MLD on GigabitEthernet 1/0/1.
[RouterD] interface gigabitethernet 1/0/1
[RouterD-GigabitEthernet1/0/1] mld enable
[RouterD-GigabitEthernet1/0/1] quit
# Enable IPv6 PIM-SM on GigabitEthernet 1/0/2.
[RouterD] interface gigabitethernet 1/0/2
[RouterD-GigabitEthernet1/0/2] ipv6 pim sm
[RouterD-GigabitEthernet1/0/2] quit
7.
Configure Switch A:
# Enable MLD snooping globally.
<SwitchA> system-view
[SwitchA] mld-snooping
[SwitchA-mld-snooping] quit
# Create VLAN 100, assign GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4 to this VLAN,
and enable MLD snooping and IPv6 PIM snooping for the VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port gigabitethernet 1/0/1 to gigabitethernet 1/0/4
[SwitchA-vlan100] mld-snooping enable
[SwitchA-vlan100] ipv6 pim-snooping enable
[SwitchA-vlan100] quit
Verifying the configuration
# On Switch A, display information about IPv6 PIM snooping neighbors for VLAN 100.
[SwitchA] display ipv6 pim-snooping neighbor vlan 100
Total 4 neighbors.
VLAN 100: Total 4 neighbors.
FE80::1
Slots (0 in total):
Ports (1 in total):
GE1/0/1 (00:32:43)
FE80::2
Slots (0 in total):
Ports (1 in total):
GE1/0/2 (00:32:43)
FE80::3
Slots (0 in total):
Ports (1 in total):
GE1/0/3 (00:32:43)
FE80::4
Slots (0 in total):
Ports (1 in total):
GE1/0/4 (00:32:43)