Example: Configuring IPv6 PIM-DM

Network configuration

As shown in Figure 120:

Figure 120: Network diagram

Table 24: 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-int103

1002::1/64

Switch D

Vlan-int103

1002::2/64

Switch B

Vlan-int200

2001::1/64

Switch D

Vlan-int101

2002::2/64

Switch B

Vlan-int101

2002::1/64

Switch D

Vlan-int102

3001::2/64

Switch C

Vlan-int200

2001::2/64

Switch D

Vlan-int300

4001::1/64

Switch C

Vlan-int102

3001::1/64

Switch D

Vlan-int103

1002::2/64

Procedure

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

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

  3. Enable IPv6 multicast routing, MLD, and IPv6 PIM-DM:

    # 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-DM on VLAN-interface 103.

    [SwitchA] interface vlan-interface 103
    [SwitchA-Vlan-interface103] ipv6 pim dm
    [SwitchA-Vlan-interface103] quit
    

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

    # On Switch D, enable IPv6 multicast routing, and enable IPv6 PIM-DM on each interface.

    <SwitchD> system-view
    [SwitchD] ipv6 multicast routing
    [SwitchD-mrib6] quit
    [SwitchD] interface vlan-interface 300
    [SwitchD-Vlan-interface300] ipv6 pim dm
    [SwitchD-Vlan-interface300] quit
    [SwitchD] interface vlan-interface 103
    [SwitchD-Vlan-interface103] ipv6 pim dm
    [SwitchD-Vlan-interface103] quit
    [SwitchD] interface vlan-interface 101
    [SwitchD-Vlan-interface101] ipv6 pim dm
    [SwitchD-Vlan-interface101] quit
    [SwitchD] interface vlan-interface 102
    [SwitchD-Vlan-interface102] ipv6 pim dm
    [SwitchD-Vlan-interface102] quit
    

Verifying the configuration

# Display IPv6 PIM information on Switch D.

[SwitchD] display ipv6 pim interface
 Interface          NbrCnt HelloInt   DR-Pri     DR-Address
 Vlan300            0      30         1          FE80::A01:201:1
                                                 (local)
 Vlan103            0      30         1          FE80::A01:201:2
                                                 (local)
 Vlan101            1      30         1          FE80::A01:201:3
                                                 (local)
 Vlan102            1      30         1          FE80::A01:201:4
                                                 (local)

# Display IPv6 PIM neighboring relationship on Switch D.

[SwitchD] display ipv6 pim neighbor
 Total Number of Neighbors = 3

 Neighbor        Interface           Uptime   Expires  Dr-Priority
 FE80::A01:101:1 Vlan103             00:04:00 00:01:29 1
 FE80::B01:102:2 Vlan101             00:04:16 00:01:29 3
 FE80::C01:103:3 Vlan102             00:03:54 00:01:17 5

# Send an MLD report from Host A to join IPv6 multicast group FF0E::101. (Details not shown.)

# Send IPv6 multicast data from IPv6 multicast source 4001::100/64 to IPv6 multicast group FF0E::101. (Details not shown.)

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

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

 (*, FF0E::101)
     Protocol: pim-dm, Flag: WC
     UpTime: 00:01:24
     Upstream interface: NULL
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface100
             Protocol: mld, UpTime: 00:01:20, Expires: -

 (4001::100, FF0E::101)
     Protocol: pim-dm, Flag: ACT
     UpTime: 00:01:20
     Upstream interface: Vlan-interface103
         Upstream neighbor: 1002::2
         RPF prime neighbor: 1002::2
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlan-interface100
             Protocol: pim-dm, UpTime: 00:01:20, Expires: -

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

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

 (4001::100, FF0E::101)
     Protocol: pim-dm, Flag: LOC ACT
     UpTime: 00:02:19
     Upstream interface: Vlan-interface300
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information:
     Total number of downstreams: 2
         1: Vlan-interface103
             Protocol: pim-dm, UpTime: 00:02:19, Expires: -
         2: Vlan-interface102
             Protocol: pim-dm, UpTime: 00:02:19, Expires: -

The output shows the following information: