Example: Configuring admin-scoped IPv6 PIM-SM

Network configuration

As shown in Figure 122:

Figure 122: Network diagram

Table 26: Interface and IPv6 address assignment

Device

Interface

IPv6 address

Device

Interface

IPv6 address

Switch A

Vlan-int100

1001::1/64

Switch E

Vlan-int104

3002::2/64

Switch A

Vlan-int101

1002::1/64

Switch E

Vlan-int108

6001::2/64

Switch B

Vlan-int200

2001::1/64

Switch F

Vlan-int109

8001::1/64

Switch B

Vlan-int101

1002::2/64

Switch F

Vlan-int107

6002::2/64

Switch B

Vlan-int103

2002::1/64

Switch F

Vlan-int102

2003::2/64

Switch B

Vlan-int102

2003::1/64

Switch G

Vlan-int500

9001::1/64

Switch C

Vlan-int300

3001::1/64

Switch G

Vlan-int109

8001::2/64

Switch C

Vlan-int104

3002::1/64

Switch H

Vlan-int110

4001::1/64

Switch C

Vlan-int105

3003::1/64

Switch H

Vlan-int106

3004::2/64

Switch C

Vlan-int103

2002::2/64

Switch I

Vlan-int600

5001::1/64

Switch C

Vlan-int106

3004::1/64

Switch I

Vlan-int110

4001::2/64

Switch D

Vlan-int105

3003::2/64

Source 1

2001::100/64

Switch D

Vlan-int108

6001::1/64

Source 2

3001::100/64

Switch D

Vlan-int107

6002::1/64

Source 3

9001::100/64

Switch E

Vlan-int400

7001::1/64

Procedure

  1. Assign an IPv6 address and prefix length to each interface, as shown in Figure 122. (Details not shown.)

  2. Configure OSPFv3 on all switches in the IPv6 PIM-SM domain. (Details not shown.)

  3. 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 the receiver-side interface (VLAN-interface 100).

    [SwitchA] interface vlan-interface 100
    [SwitchA-Vlan-interface100] mld enable
    [SwitchA-Vlan-interface100] quit
    

    # Enable IPv6 PIM-SM on VLAN-interface 101.

    [SwitchA] interface vlan-interface 101
    [SwitchA-Vlan-interface101] ipv6 pim sm
    [SwitchA-Vlan-interface101] quit
    

    # Enable IPv6 multicast routing, MLD, and IPv6 PIM-SM on Switch E and Switch I in the same way Switch A is configured. (Details not shown.)

    # On Switch B, enable IPv6 multicast routing, and enable IPv6 PIM-SM on each interface.

    <SwitchB> system-view
    [SwitchB] ipv6 multicast routing
    [SwitchB-mrib6] quit
    [SwitchB] interface vlan-interface 200
    [SwitchB-Vlan-interface200] ipv6 pim sm
    [SwitchB-Vlan-interface200] quit
    [SwitchB] interface vlan-interface 101
    [SwitchB-Vlan-interface101] ipv6 pim sm
    [SwitchB-Vlan-interface101] quit
    [SwitchB] interface vlan-interface 102
    [SwitchB-Vlan-interface102] ipv6 pim sm
    [SwitchB-Vlan-interface102] quit
    [SwitchB] interface vlan-interface 103
    [SwitchB-Vlan-interface103] ipv6 pim sm
    [SwitchB-Vlan-interface103] quit
    

    # Enable IPv6 multicast routing and IPv6 PIM-SM on Switch C, Switch D, Switch F, Switch G, and Switch H in the same way Switch B is configured. (Details not shown.)

  4. Configure IPv6 admin-scoped zone boundaries:

    # On Switch B, configure VLAN-interface 102 and VLAN-interface 103 as the boundaries of IPv6 admin-scoped zone 1.

    [SwitchB] interface vlan-interface 102
    [SwitchB-Vlan-interface102] ipv6 multicast boundary scope 4
    [SwitchB-Vlan-interface102] quit
    [SwitchB] interface vlan-interface 103
    [SwitchB-Vlan-interface103] ipv6 multicast boundary scope 4
    [SwitchB-Vlan-interface103] quit
    

    # On Switch C, configure VLAN-interface 103 and VLAN-interface 106 as the boundaries of IPv6 admin-scoped zone 2.

    <SwitchC> system-view
    [SwitchC] interface vlan-interface 103
    [SwitchC-Vlan-interface103] ipv6 multicast boundary scope 4
    [SwitchC-Vlan-interface103] quit
    [SwitchC] interface vlan-interface 106
    [SwitchC-Vlan-interface106] ipv6 multicast boundary scope 4
    [SwitchC-Vlan-interface106] quit
    

    # On Switch D, configure VLAN-interface 107 as the boundary of IPv6 admin-scoped zone 2.

    <SwitchD> system-view
    [SwitchD] interface vlan-interface 107
    [SwitchD-Vlan-interface107] ipv6 multicast boundary scope 4
    [SwitchD-Vlan-interface107] quit
    
  5. Configure C-BSRs and C-RPs:

    # On Switch B, configure VLAN-interface 101 as a C-BSR and a C-RP for IPv6 admin-scoped zone 1.

    [SwitchB] ipv6 pim
    [SwitchB-pim6] c-bsr 1002::2 scope 4
    [SwitchB-pim6] c-rp 1002::2 scope 4
    [SwitchB-pim6] quit
    

    # On Switch D, configure VLAN-interface 105 as a C-BSR and a C-RP for IPv6 admin-scoped zone 2.

    [SwitchD] ipv6 pim
    [SwitchD-pim6] c-bsr 3003::2 scope 4
    [SwitchD-pim6] c-rp 3003::2 scope 4
    [SwitchD-pim6] quit
    

    # On Switch F, configure VLAN-interface 109 as a C-BSR and a C-RP for the IPv6 global-scoped zone.

    <SwitchF> system-view
    [SwitchF] ipv6 pim
    [SwitchF-pim6] c-bsr 8001::1
    [SwitchF-pim6] c-rp 8001::1
    [SwitchF-pim6] quit
    

Verifying the configuration

# Display BSR information on Switch B.

[SwitchB] display ipv6 pim bsr-info
 Scope: non-scoped
     State: Accept Preferred
     Bootstrap timer: 00:01:25
     Elected BSR address: 8001::1
       Priority: 64
       Hash mask length: 126
       Uptime: 00:01:45

 Scope: 4
     State: Elected
     Bootstrap timer: 00:00:06
     Elected BSR address: 1002::2
       Priority: 64
       Hash mask length: 126
       Uptime: 00:04:54
     Candidate BSR address: 1002::2
       Priority: 64
       Hash mask length: 126

# Display BSR information on Switch D.

[SwitchD] display ipv6 pim bsr-info
 Scope: non-scoped
     State: Accept Preferred
     Bootstrap timer: 00:01:25
     Elected BSR address: 8001::1
       Priority: 64
       Hash mask length: 126
       Uptime: 00:01:45

 Scope: 4
     State: Elected
     Bootstrap timer: 00:01:25
     Elected BSR address: 3003::2
       Priority: 64
       Hash mask length: 126
       Uptime: 00:01:45
     Candidate BSR address: 3003::2
       Priority: 64
       Hash mask length: 126

# Display BSR information on Switch F.

[SwitchF] display ipv6 pim bsr-info
 Scope: non-scoped
     State: Elected
     Bootstrap timer: 00:00:49
     Elected BSR address: 8001::1
       Priority: 64
       Hash mask length: 126
       Uptime: 00:01:11
     Candidate BSR address: 8001::1
       Priority: 64
       Hash mask length: 126

# Display RP information on Switch B.

[SwitchB] display ipv6 pim rp-info
 BSR RP information:
 Scope: non-scoped
     Group/MaskLen: FF00::/8
       RP address               Priority  HoldTime  Uptime    Expires
       8001::1                  192       180       00:01:14  00:02:46
   Scope: 4
     Group/MaskLen: FF04::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF14::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF24::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF34::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF44::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF54::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF64::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF74::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF84::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF94::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FFA4::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FFB4::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FFC4::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FFD4::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FFE4::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FFF4::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56
     Group/MaskLen: FF04::/16
       RP address               Priority  HoldTime  Uptime    Expires
       1002::2 (local)          192       180       00:02:03  00:02:56

# Display RP information on Switch F.

[SwitchF] display ipv6 pim rp-info
 BSR RP information:
   Scope: non-scoped
     Group/MaskLen: FF00::/8
       RP address               Priority  HoldTime  Uptime    Expires
       8001::1 (local)          192       180       00:10:28  00:02:31