380
Vlan-int103 2002::1/64 Vlan-int103 2002::2/64
Switch C Vlan-int200 2001::2
64 Vlan-int102 1003::2/64
Vlan-int104 3001::1/64 Vlan-int105 4002::2/64
Configuration procedure
1. Enable IPv6 forwarding, and configure IPv6 addresses and IPv6 unicast routing.
Enable IPv6 forwarding on each switch, and configure the IPv6 address and prefix length for each
interface according to Figure 100 (details not shown).
Configure OSPFv3 on the switches in the IPv6 PIM-DM domain to ensure network-layer reachability
among them (details not shown).
2. Enable IPv6 multicast routing, and enable IPv6 PIM-SM and MLD.
# Enable IPv6 multicast routing on Switch A, enable IPv6 PIM-SM on each interface, and enable MLD on
VLAN-interface 300, which connects Switch A to N1.
<SwitchA> system-view
[SwitchA] multicast ipv6 routing-enable
[SwitchA] interface vlan-interface 100
[SwitchA-Vlan-interface100] mld enable
[SwitchA-Vlan-interface100] pim ipv6 sm
[SwitchA-Vlan-interface100] quit
[SwitchA] interface vlan-interface 101
[SwitchA-Vlan-interface101] pim ipv6 sm
[SwitchA-Vlan-interface101] quit
[SwitchA] interface vlan-interface 102
[SwitchA-Vlan-interface102] pim ipv6 sm
[SwitchA-Vlan-interface102] quit
The configuration on Switch B and Switch C is similar to that on Switch A. The configuration on Switch D
and Switch E is also similar to that on Switch A except that it is not necessary to enable MLD on the
corresponding interfaces on these two switches.
3. Configure a C-BSR and a C-RP.
# On Switch D, configure the service scope of RP advertisements, specify a C-BSR and a C-RP, and set
the hash mask length to 128 and the priority of the C-BSR to 10.
<SwitchD> system-view
[SwitchD] acl ipv6 number 2005
[SwitchD-acl6-basic-2005] rule permit source ff0e::101 64
[SwitchD-acl6-basic-2005] quit
[SwitchD] pim ipv6
[SwitchD-pim6] c-bsr 4002::1 128 10
[SwitchD-pim6] c-rp 4002::1 group-policy 2005
[SwitchD-pim6] quit
# On Switch E, configure the service scope of RP advertisements, specify a C-BSR and a C-RP, and set
the hash mask length to 128 and the priority of the C-BSR to 20.
<SwitchE> system-view
[SwitchE] acl ipv6 number 2005
[SwitchE-acl6-basic-2005] rule permit source ff0e::101 64
[SwitchE-acl6-basic-2005] quit