315
Configuration procedure
1.
Assign an IPv6 address and subnet mask to each interface, as shown in
. (Details not
shown.)
2.
Configure Router A:
# Enable IPv6 multicast routing.
<RouterA> system-view
[RouterA] ipv6 multicast routing
[RouterA-mrib6] quit
# Enable MLD and IPv6 PIM-DM on HundredGigE 1/0/1.
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] mld enable
[RouterA-HundredGigE1/0/1] ipv6 pim dm
[RouterA-HundredGigE1/0/1] quit
# Enable IPv6 PIM-DM on HundredGigE 1/0/2.
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] ipv6 pim dm
[RouterA-HundredGigE1/0/2] quit
3.
Configure Switch A:
# Enable MLD snooping globally.
<SwitchA> system-view
[SwitchA] mld-snooping
[SwitchA-mld-snooping] quit
# Create VLAN 100, and assign HundredGigE 1/0/1 through HundredGigE 1/0/4 to the VLAN.
[SwitchA] vlan 100
[SwitchA-vlan100] port hundredgige 1/0/1 to hundredgige 1/0/4
# Enable MLD snooping and MLD snooping proxying for the VLAN.
[SwitchA-vlan100] mld-snooping enable
[SwitchA-vlan100] mld-snooping proxy enable
[SwitchA-vlan100] quit
Verifying the configuration
# Display brief information about dynamic MLD snooping group entries on Switch A.
[SwitchA] display mld-snooping group
Total 1 entries.
VLAN 100: Total 1 entries.
(::, FF1E::101)
Host ports (2 in total):
HGE1/0/3 (00:04:09)
HGE1/0/4 (00:03:06)
# Send an MLD done message to leave IPv6 multicast group (FF1E::101) from Host A. (Details not
shown.)
# Display information about dynamic MLD groups on Router A.
[RouterA] display mld group
MLD groups in total: 1
HundredGigE1/0/1(2001::1):
MLD groups reported in total: 1
Group address: FF1E::101