Example: Configuring IPv6 BIDIR-PIM
Network configuration
As shown in Figure 123:
OSPFv3 runs on the network.
VOD streams are sent to receiver hosts in IPv6 multicast.
Source 1 and Source 2 send IPv6 multicast data to IPv6 multicast group FF14::101.
Host A and Host B are receivers of this IPv6 multicast group.
VLAN-interface 102 of Switch C acts as a C-BSR. Loopback 0 of Router C acts as the C-RP.
MLDv1 runs between Switch B and Host A, and between Switch D and Host B.
Figure 123: Network diagram
Table 27: 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-int400 | 5001::1/64 |
Switch B | Vlan-int200 | 2001::1/64 | Switch D | Vlan-int103 | 3001::2/64 |
Switch B | Vlan-int101 | 1002::2/64 | Source 1 | — | 1001::2/64 |
Switch B | Vlan-int102 | 2002::1/64 | Source 2 | — | 5001::2/64 |
Switch C | Vlan-int102 | 2002::2/64 | Receiver 1 | — | 2001::2/64 |
Switch C | Vlan-int103 | 3001::1/64 | Receiver 2 | — | 4001::2/64 |
Switch C | Loop0 | 6001::1/128 |
Procedure
Assign an IPv6 address and prefix length to each interface, as shown in Figure 123. (Details not shown.)
Configure OSPFv3 on the switches in the IPv6 BIDIR-PIM domain. (Details not shown.)
Enable IPv6 multicast routing, IPv6 PIM-SM, IPv6 BIDIR-PIM, and MLD:
# On Switch A, enable IPv6 multicast routing, enable IPv6 PIM-SM on each interface, and enable IPv6 BIDIR-PIM.
<SwitchA> system-view [SwitchA] ipv6 multicast routing [SwitchA-mrib6] quit [SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] ipv6 pim sm [SwitchA-Vlan-interface100] quit [SwitchA] interface vlan-interface 101 [SwitchA-Vlan-interface101] ipv6 pim sm [SwitchA-Vlan-interface101] quit [SwitchA] ipv6 pim [SwitchA-pim6] bidir-pim enable [SwitchA-pim6] quit
# On Switch B, enable IPv6 multicast routing.
<SwitchB> system-view [SwitchB] ipv6 multicast routing [SwitchB-mrib6] quit
# Enable MLD on the receiver-side interface (VLAN-interface 200).
[SwitchB] interface vlan-interface 200 [SwitchB-Vlan-interface200] mld enable [SwitchB-Vlan-interface200] quit
# Enable IPv6 PIM-SM on the other interfaces.
[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
# Enable IPv6 BIDIR-PIM.
[SwitchB] ipv6 pim [SwitchB-pim6] bidir-pim enable [SwitchB-pim6] quit
# On Switch C, enable IPv6 multicast routing, enable IPv6 PIM-SM on each interface, and enable IPv6 BIDIR-PIM.
<SwitchC> system-view [SwitchC] ipv6 multicast routing [SwitchC-mrib6] quit [SwitchC] interface vlan-interface 102 [SwitchC-Vlan-interface102] ipv6 pim sm [SwitchC-Vlan-interface102] quit [SwitchC] interface vlan-interface 103 [SwitchC-Vlan-interface103] ipv6 pim sm [SwitchC-Vlan-interface103] quit [SwitchC] interface loopback 0 [SwitchC-LoopBack0] ipv6 pim sm [SwitchC-LoopBack0] quit [SwitchC] ipv6 pim [SwitchC-pim6] bidir-pim enable
# On Switch D, enable IPv6 multicast routing.
<SwitchD> system-view [SwitchD] ipv6 multicast routing [SwitchD-mrib6] quit
# Enable MLD on the receiver-side interface (VLAN-interface 300).
[SwitchD] interface vlan-interface 300 [SwitchD-Vlan-interface300] mld enable [SwitchD-Vlan-interface300] quit
# Enable IPv6 PIM-SM on the other interfaces.
[SwitchD] interface vlan-interface 400 [SwitchD-Vlan-interface400] ipv6 pim sm [SwitchD-Vlan-interface400] quit
# Enable IPv6 BIDIR-PIM.
[SwitchD] interface vlan-interface 103 [SwitchD-Vlan-interface103] ipv6 pim sm [SwitchD-Vlan-interface103] quit [SwitchD] ipv6 pim [SwitchD-pim6] bidir-pim enable [SwitchD-pim6] quit
On Switch C, configure VLAN interface 102 as a C-BSR, and loopback interface 0 as a C-RP for the entire IPv6 BIDIR-PIM domain.
[SwitchC-pim6] c-bsr 2002::2 [SwitchC-pim6] c-rp 6001::1 bidir [SwitchC-pim6] quit
Verifying the configuration
Display IPv6 BIDIR-PIM DF information:
# Display IPv6 BIDIR-PIM DF information on Switch A.
[SwitchA] display ipv6 pim df-info RP address: 6001::1 Interface State DF-Pref DF-Metric DF-Uptime DF-Address Vlan100 Win 100 2 01:08:50 FE80::200:5EFF: FE71:2800 (local) Vlan101 Lose 100 1 01:07:49 FE80::20F:E2FF: FE38:4E01
# Display IPv6 BIDIR-PIM DF information on Switch B.
[SwitchB] display ipv6 pim df-info RP address: 6001::1 Interface State DF-Pref DF-Metric DF-Uptime DF-Address Vlan200 Win 100 1 01:24:09 FE80::200:5EFF: FE71:2801 (local) Vlan101 Win 100 1 01:24:09 FE80::20F:E2FF: FE38:4E01 (local) Vlan102 Lose 0 0 01:23:12 FE80::20F:E2FF: FE15:5601
# Display IPv6 BIDIR-PIM DF information on Switch C.
[SwitchC] display ipv6 pim df-info RP address: 6001::1 Interface State DF-Pref DF-Metric DF-Uptime DF-Address Loop0 - - - - - Vlan102 Win 0 0 01:06:07 FE80::20F:E2FF: FE15:5601 (local) Vlan103 Win 0 0 01:06:07 FE80::20F:E2FF: FE15:5602 (local)
# Display IPv6 BIDIR-PIM DF information on Switch D.
[SwitchD] display ipv6 pim df-info RP address: 6001::1 Interface State DF-Pref DF-Metric DF-Uptime DF-Address Vlan300 Win 100 1 01:19:53 FE80::200:5EFF: FE71:2803 (local) Vlan400 Win 100 1 00:39:34 FE80::200:5EFF: FE71:2802 (local) Vlan103 Lose 0 0 01:21:40 FE80::20F:E2FF: FE15:5602
Display information about DFs for IPv6 multicast forwarding:
# Display information about DFs for IPv6 multicast forwarding on Switch A.
[SwitchA] display ipv6 multicast forwarding df-info Total 1 RP, 1 matched 00001. RP address: 6001::1 Flags: 0x0 Uptime: 00:08:32 RPF interface: Vlan-interface101 List of 1 DF interfaces: 1: Vlan-interface100
# Display information about DFs for IPv6 multicast forwarding on Switch B.
[SwitchB] display ipv6 multicast forwarding df-info Total 1 RP, 1 matched 00001. RP address: 6001::1 Flags: 0x0 Uptime: 00:06:24 RPF interface: Vlan-interface102 List of 2 DF interfaces: 1: Vlan-interface101 2: Vlan-interface200
# Display information about DFs for IPv6 multicast forwarding on Switch C.
[SwitchC] display ipv6 multicast forwarding df-info Total 1 RP, 1 matched 00001. RP address: 6001::1 Flags: 0x0 Uptime: 00:07:21 RPF interface: LoopBack0 List of 2 DF interfaces: 1: Vlan-interface102 2: Vlan-interface103
# Display information about DFs for IPv6 multicast forwarding on Switch D.
[SwitchD] display ipv6 multicast forwarding df-info Total 1 RP, 1 matched 00001. RP address: 6001::1 Flags: 0x0 Uptime: 00:05:12 RPF interface: Vlan-interface103 List of 2 DF interfaces: 1: Vlan-interface300 2: Vlan-interface400