331
To make sure Switch A forwards IPv6 PIM protocol packets and IPv6 multicast data packets only to
routers that are connected to receivers, perform the following tasks:
•
On Switch A, configure MLD snooping and IPv6 PIM snooping.
•
On all IPv6 PIM routers connected to Switch A, set the maximum size of a join or prune
message to 1400 bytes, which is less than the path MTU.
Figure 96 Network diagram
Configuration procedure
1.
Assign an IPv6 address and prefix length to each interface, as shown in
. (Details not
shown.)
2.
Configure OSPFv3 on the routers. (Details not shown.)
3.
Configure Router A:
# Enable IPv6 multicast routing.
<RouterA> system-view
[RouterA] ipv6 multicast routing
[RouterA-mrib6] quit
# Enable IPv6 PIM-SM on each interface.
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] ipv6 pim sm
[RouterA-HundredGigE1/0/1] quit
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] ipv6 pim sm
[RouterA-HundredGigE1/0/2] quit
# Set the maximum size of a join or prune message to 1400 bytes.
[RouterA] ipv6 pim
[RouterA-pim6] jp-pkt-size 1400
# Configure HundredGigE 1/0/2 as a C-BSR and a C-RP.
[RouterA-pim6] c-bsr 1001::1
[RouterA-pim6] c-rp 1001::1
[RouterA-pim6] quit
4.
Configure Router B:
# Enable IPv6 multicast routing.
Source 1
Receiver 1
Receiver 2
Source 2
Switch A
Router A
Router B
Router D
Router C
HGE1/0/1
1::1/64
1::100/64
2::100/64
HGE1/0/2
1001::1/64
HGE1/0/1
2::1/64
HGE1/0/1
3::1/64
HGE1/0/1
4::1/64
3::100/64
4::100/64
HGE1/0/2
1001::2/64
HGE1/0/2
1001::3/64
HGE1/0/2
1001::4/64
HGE1/0/1
HGE1/0/2
HGE1/0/3
HGE1/0/4