368
Device Interface IPv6 address
Device Interface IPv6 address
Router A GE1/0/3 1003::1/64 Router D GE1/0/3 4002::1/64
Router B GE1/0/1 2001::1/64 Router E GE1/0/1 3001::2/64
Router B GE1/0/2 2002::1/64 Router E GE1/0/2 2002::2/64
Router C GE1/0/1 2001::2/64 Router E GE1/0/3 1003::2/64
Router C GE1/0/2 3001::1/64 Router E GE1/0/4 4002::2/64
Configuration procedure
1. Assign an IPv6 address and prefix length to each interface, as shown in Figure 106. (Details not
shown.)
2. Configure OSPFv3 on all routers in the IPv6 PIM-SM domain. (Details not shown.)
3. Enable IPv6 multicast routing, and enable MLD and IPv6 PIM-SM:
# On Router A, enable IPv6 multicast routing.
<RouterA> system-view
[RouterA] ipv6 multicast routing
[RouterA-mrib6] quit
# Enable MLD on GigabitEthernet 1/0/1 (the interface that connects to the stub network).
[RouterA] interface gigabitethernet 1/0/1
[RouterA-GigabitEthernet1/0/1] mld enable
[RouterA-GigabitEthernet1/0/1] quit
# Enable IPv6 PIM-SM on the other interfaces.
[RouterA] interface gigabitethernet 1/0/2
[RouterA-GigabitEthernet1/0/2] ipv6 pim sm
[RouterA-GigabitEthernet1/0/2] quit
[RouterA] interface gigabitethernet 1/0/3
[RouterA-GigabitEthernet 1/0/3] ipv6 pim sm
[RouterA-GigabitEthernet 1/0/3] quit
# Enable IPv6 multicast routing, MLD and IPv6 PIM-SM on Router B and Router C in the same
way Router A is configured. (Details not shown.)
# Enable IPv6 multicast routing and IPv6 PIM-SM on Router D and Router E in the same way
Router A is configured. (Details not shown.)
4. Configure C-BSRs, C-RPs, and the static RP:
# On Router E, configure the service scope of RP advertisements.
<RouterE> system-view
[RouterE] acl ipv6 basic 2005
[RouterE-acl-ipv6-basic-2005] rule permit source ff0e::101 64
[RouterE-acl-ipv6-basic-2005] quit
# Configure GigabitEthernet 1/0/3 as a C-BSR and a C-RP, and configure GigabitEthernet 1/0/2
of Router D as the static RP.
[RouterE] ipv6 pim
[RouterE-pim6] c-bsr 1003::2
[RouterE-pim6] c-rp 1003::2 group-policy 2005
[RouterE-pim6] static-rp 1002::2
[RouterE-pim6] quit
# On Router A, configure GigabitEthernet 1/0/2 of Router D as the static RP.
[RouterA] ipv6 pim