355
•
Router A sends IPv6 multicast data to Switch A through the IPv6 multicast VLAN.
•
Switch A forwards the traffic to the receivers that belong to different user VLANs.
Figure 102 Network diagram
Configuration procedure
1.
Enable IPv6 forwarding on each device and assign an IPv6 address and address prefix to each
interface according to
. (Details not shown.)
2.
On Router A, enable IPv6 multicast routing, enable IPv6 PIM-DM on each interface and enable
MLD on the host-side interface GigabitEthernet 1/0/2.
<RouterA> system-view
[RouterA] multicast ipv6 routing-enable
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] pim ipv6 dm
[RouterA-GigabitEthernet1/0/1] quit
[RouterA] interface gigabitethernet 1/0/2
[RouterA-GigabitEthernet1/0/2] pim ipv6 dm
[RouterA-GigabitEthernet1/0/2] mld enable
3.
Configure Switch A:
# Enable MLD snooping globally.
<SwitchA> system-view
[SwitchA] mld-snooping
[SwitchA-mld-snooping] quit
# Create VLAN 2 through VLAN 5.
[SwitchA] vlan 2 to 5
# Configure GigabitEthernet 1/0/2 as a trunk port that permits packets from VLAN 2 and VLAN
3 to pass through.
[SwitchA] interface gigabitethernet 1/0/2
[SwitchA-GigabitEthernet1/0/2] port link-type trunk
Source
GE
1/0
/2
GE1
/0/3
Switch A
MLD querier
Router A
GE1/0/1
1::2/64
GE1/0/2
2001::1/64
1::1/64
GE1/0/1
Switch B
Switch C
GE
1/0
/1
GE1
/0/1
Receiver
Host A
VLAN 2
Receiver
Host B
VLAN 3
Receiver
Host C
VLAN 4
Receiver
Host D
VLAN 5
GE1/0/2
GE1/0/3
GE1/0/2
GE1/0/3