Example: Configuring non-scoped IPv6 PIM-SM
Network configuration
As shown in Figure 121:
OSPFv3 runs on the network.
VOD streams are sent to receiver hosts in multicast. The receivers of different subnets form stub networks, and a minimum of one receiver host exist in each stub network. The entire IPv6 PIM-SM domain contains only one BSR.
Host A and Host C are multicast receivers in the stub networks N1 and N2.
Specify VLAN-interface 102 on Switch E as a C-BSR and a C-RP. The C-RP is designated to the IPv6 multicast group range FF0E::101/64. Specify VLAN-interface101 of Switch D as the static RP on all the switches to back up the dynamic RP.
MLDv1 runs between Switch A and N1, and between Switch B, Switch C, and N2.
Figure 121: Network diagram
Table 25: Interface and IPv6 address assignment
Device | Interface | IPv6 address | Device | Interface | IPv6 address |
---|---|---|---|---|---|
Switch A | Vlan-int100 | 1001::1/64 | Switch D | Vlan-int300 | 4001::1/64 |
Switch A | Vlan-int101 | 1002::1/64 | Switch D | Vlan-int101 | 1002::2/64 |
Switch A | Vlan-int102 | 1003::1/64 | Switch D | Vlan-int105 | 4002::1/64 |
Switch B | Vlan-int200 | 2001::1/64 | Switch E | Vlan-int104 | 3001::2/64 |
Switch B | Vlan-int103 | 2002::1/64 | Switch E | Vlan-int103 | 2002::2/64 |
Switch C | Vlan-int200 | 2001::2/64 | Switch E | Vlan-int102 | 1003::2/64 |
Switch C | Vlan-int104 | 3001::1/64 | Switch E | Vlan-int105 | 4002::2/64 |
Procedure
Assign an IPv6 address and prefix length to each interface, as shown in Figure 121. (Details not shown.)
Configure OSPFv3 on all switches in the IPv6 PIM-SM domain. (Details not shown.)
Enable IPv6 multicast routing, MLD, and IPv6 PIM-SM:
# On Switch A, enable IPv6 multicast routing.
<SwitchA> system-view [SwitchA] ipv6 multicast routing [SwitchA-mrib6] quit
# Enable MLD on VLAN-interface 100 (the interface that is connected to the stub network).
[SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] mld enable [SwitchA-Vlan-interface100] quit
# Enable IPv6 PIM-SM on other interfaces.
[SwitchA] interface vlan-interface 101 [SwitchA-Vlan-interface101] ipv6 pim sm [SwitchA-Vlan-interface101] quit [SwitchA] interface vlan-interface 102 [SwitchA-Vlan-interface102] ipv6 pim sm [SwitchA-Vlan-interface102] quit
# Enable IPv6 multicast routing, MLD, and IPv6 PIM-SM on Switch B and Switch C in the same way Switch A is configured. (Details not shown.)
# Enable IPv6 multicast routing and IPv6 PIM-SM on Switch D and Switch E in the same way Switch A is configured. (Details not shown.)
Configure C-BSRs, C-RPs, and static RPs:
# On Switch E, configure the service scope of RP advertisements.
<SwitchE> system-view [SwitchE] acl ipv6 basic 2005 [SwitchE-acl-ipv6-basic-2005] rule permit source ff0e::101 64 [SwitchE-acl-ipv6-basic-2005] quit
# Configure VLAN-interface 102 as a C-BSR and a C-RP, and configure VLAN-interface 101 of Switch D as the static RP.
[SwitchE] ipv6 pim [SwitchE-pim6] c-bsr 1003::2 [SwitchE-pim6] c-rp 1003::2 group-policy 2005 [SwitchE-pim6] static-rp 1002::2 [SwitchE-pim6] quit
# On Switch A, configure VLAN-interface 101 of Switch D as a static RP.
[SwitchA] ipv6 pim [SwitchA-pim6] static-rp 1002::2 [SwitchA-pim6] quit
# Configure a static RP on Switch B, Switch C, and Switch D in the same way Switch A is configured. (Details not shown.)
Verifying the configuration
# Display IPv6 PIM information on Switch A.
[SwitchA] display ipv6 pim interface Interface NbrCnt HelloInt DR-Pri DR-Address Vlan101 1 30 1 FE80::A01:201:2 Vlan102 1 30 1 FE80::A01:201:3
# Display BSR information on Switch A.
[SwitchA] display ipv6 pim bsr-info Scope: non-scoped State: Accept Preferred Bootstrap timer: 00:01:44 Elected BSR address: 1003::2 Priority: 64 Hash mask length: 126 Uptime: 00:11:18
# Display BSR information on Switch E.
[SwitchE] display ipv6 pim bsr-info Scope: non-scoped State: Elected Bootstrap timer: 00:01:44 Elected BSR address: 1003::2 Priority: 64 Hash mask length: 126 Uptime: 00:11:18 Candidate BSR address: 1003::2 Priority: 64 Hash mask length: 126
# Display RP information on Switch A.
[SwitchA] display ipv6 pim rp-info BSR RP information: Scope: non-scoped Group/MaskLen: FF0E::101/64 RP address Priority HoldTime Uptime Expires 1003::2 192 180 00:05:19 00:02:11 Static RP information: RP address ACL Mode Preferred 1002::2 ---- pim-sm No