Example: Configuring IPv6 PIM-SSM

Network configuration

As shown in Figure 124:

Table 28: 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

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

  2. Configure OSPFv3 on the switches in the IPv6 PIM-SSM 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 MLDv2 on VLAN-interface 100 (the interface that connects to the stub network).

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

    # Enable IPv6 PIM-SM on the 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.)

  4. Configure the IPv6 SSM group range FF3E::/64 on Switch A.

    [SwitchA] acl ipv6 basic 2000
    [SwitchA-acl-ipv6-basic-2000] rule permit source ff3e:: 64
    [SwitchA-acl-ipv6-basic-2000] quit
    [SwitchA] ipv6 pim
    [SwitchA-pim6] ssm-policy 2000
    [SwitchA-pim6] quit
    
  5. Configure the IPv6 SSM group range on Switch B, Switch C, Switch D, and Switch E in the same way Switch B 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

# Send an MLDv2 report from Host A to join the IPv6 multicast source and group (4001::100/64, FF3E::101). (Details not shown.)

# Display IPv6 PIM multicast routing table information on Switch A.

[SwitchA] display ipv6 pim routing-table
 Total 0 (*, G) entry; 1 (S, G) entry

 (4001::100, FF3E::101)
     Protocol: pim-ssm, Flag: ACT
     UpTime: 00:00:11
     Upstream interface: Vlan-interface101
         Upstream neighbor: 1002::2
         RPF prime neighbor: 1002::2
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface100
             Protocol: mld, UpTime: 00:00:11, Expires: 00:03:25

# Display IPv6 PIM multicast routing table information on Switch B.

[SwitchD] display ipv6 pim routing-table
 Total 0 (*, G) entry; 1 (S, G) entry  

 (4001::100, FF3E::101)
     Protocol: pim-ssm, Flag: LOC
     UpTime: 00:08:02
     Upstream interface: Vlan-interface300
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface105
             Protocol: pim-ssm, UpTime: 00:08:02, Expires: 00:03:25

The output shows that switches on the SPT path (Switch A and Switch D) have generated the correct (S, G) entries.