08-IP Multicast Configuration Guide

HomeSupportSwitchesH3C S12500 Switch SeriesConfigure & DeployConfiguration GuidesH3C S12500 Configuration Guides-Release1828P04-6W18208-IP Multicast Configuration Guide
12-IPv6 PIM Snooping Configuration
Title Size Download
12-IPv6 PIM Snooping Configuration 152.96 KB

Overview

IPv6 Protocol Independent Multicast (PIM) snooping runs on Layer 2 devices. It determines which ports are interested in multicast data by analyzing the received IPv6 PIM messages, and adds the ports to a multicast forwarding entry to make sure that multicast data can be forwarded to only the ports that are interested in the data.

Figure 1 Multicast packet transmission without or with IPv6 PIM snooping

 

As shown in Figure 1, Source 1 sends multicast data to multicast group G1, and Source 2 sends multicast data to multicast group G2. Receiver 1 belongs to G1, and Receiver 2 belongs to G2. The Layer 2 switch's interfaces that connect to the IPv6 PIM-capable routers are in the same VLAN.

·     When running MLD snooping without IPv6 PIM snooping, the Layer 2 switch maintains the router ports according to IPv6 PIM hello messages received from IPv6 PIM-capable routers, broadcasts all other types of received IPv6 PIM messages in the VLAN, and forwards all multicast data to all router ports in the VLAN. Each IPv6 PIM-capable router in the VLAN, whether interested in the multicast data or not, will receive all multicast data and all IPv6 PIM messages except for IPv6 PIM hello messages.

·     If the Layer 2 switch runs both MLD snooping and IPv6 PIM snooping, it determines whether an IPv6 PIM-capable router is interested in the multicast data destined for a multicast group according to the received IPv6 PIM messages that the router sends, and adds the port that connects to the router to a multicast forwarding entry. Then, the Layer 2 switch can correctly forward IPv6 PIM messages and the multicast data only to the router according to the multicast forwarding entry, saving network bandwidth.

The term "router" in this document refers to both routers and Layer 3 switches.

For more information about MLD snooping and the router port, see "Configuring MLD snooping."

For more information about IPv6 PIM, see "Configuring IPv6 PIM."

Configuring IPv6 PIM snooping

Before configuring IPv6 PIM snooping for a VLAN, be sure to enable MLD snooping globally and specifically for the VLAN.

To configure IPv6 PIM snooping:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enable MLD snooping globally and enter MLD-snooping view.

mld-snooping

Disabled by default.

3.     Return to system view.

quit

N/A

4.     Enter VLAN view.

vlan vlan-id

N/A

5.     Enable MLD snooping in the VLAN.

mld-snooping enable

Disabled by default.

6.     Enable IPv6 PIM snooping in the VLAN.

pim-snooping ipv6 enable

Disabled by default.

 

 

NOTE:

·     After you enable IPv6 PIM snooping in a VLAN, IPv6 PIM snooping works only on the member interfaces of the VLAN.

·     IPv6 PIM snooping does not take effect on the sub-VLANs of a multicast VLAN.

 

For more information about IPv6 multicast VLAN, see "Configuring IPv6 multicast VLANs."

Displaying and maintaining IPv6 PIM snooping

Task

Command

Remarks

Display IPv6 PIM snooping neighbor information (in standalone mode).

display pim-snooping ipv6 neighbor [ vlan vlan-id ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display IPv6 PIM snooping neighbor information (in IRF mode).

display pim-snooping ipv6 neighbor [ vlan vlan-id ] [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display IPv6 PIM snooping routing entries (in standalone mode).

display pim-snooping ipv6 routing-table [ vlan vlan-id ] [ slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display IPv6 PIM snooping routing entries (in IRF mode).

display pim-snooping ipv6 routing-table [ vlan vlan-id ] [ chassis chassis-number slot slot-number ] [ | { begin | exclude | include } regular-expression ]

Available in any view.

Display the statistics for IPv6 PIM messages learned by IPv6 PIM snooping.

display pim-snooping ipv6 statistics [ | { begin | exclude | include } regular-expression ]

Available in any view.

Clear the statistics for IPv6 PIM messages learned by IPv6 PIM snooping.

reset pim-snooping ipv6 statistics

Available in user view.

 

IPv6 PIM snooping configuration example

Network requirements

As shown in Figure 2, Source 1 sends multicast data to IPv6 multicast group FF1E::101, and Source 2 sends multicast data to IPv6 multicast group FF2E::101. Receiver 1 belongs to multicast group FF1E::101, and Receiver 2 belongs to multicast group FF2E::101. Router C and Router D run MLD on their interface GigabitEthernet 3/0/1. Router A, Router B, Router C, and Router D run IPv6 PIM-SM, and interface GigabitEthernet 3/0/2 on Router A acts as a C-BSR and C-RP.

Configure MLD snooping and IPv6 PIM snooping on Switch A so that Switch A forwards IPv6 PIM messages and multicast data to only the routers that are interested in the multicast data.

Figure 2 Network diagram

 

Configuration procedure

1.     Enable IPv6 forwarding on the devices, configure an IPv6 address and prefix length for each interface according to Figure 2. (Details not shown.)

2.     On Router A, enable IPv6 multicast routing, enable IPv6 PIM-SM on each interface, and configure interface GigabitEthernet 3/0/2 as a C-BSR and C-RP.

<RouterA> system-view

[RouterA] multicast ipv6 routing-enable

[RouterA] interface GigabitEthernet 3/0/1

[RouterA-GigabitEthernet3/0/1] pim ipv6 sm

[RouterA-GigabitEthernet3/0/1] quit

[RouterA] interface GigabitEthernet 3/0/2

[RouterA-GigabitEthernet3/0/2] pim ipv6 sm

[RouterA-GigabitEthernet3/0/2] quit

[RouterA] pim ipv6

[RouterA-pim6] c-bsr 1001::1

[RouterA-pim6] c-rp 1001::1

3.     On Router B, enable IPv6 multicast routing, and enable IPv6 PIM-SM on each interface.

<RouterB> system-view

[RouterB] multicast ipv6 routing-enable

[RouterB] interface GigabitEthernet 3/0/1

[RouterB-GigabitEthernet3/0/1] pim ipv6 sm

[RouterB-GigabitEthernet3/0/1] quit

[RouterB] interface GigabitEthernet 3/0/2

[RouterB-GigabitEthernet3/0/2] pim ipv6 sm

4.     On Router C, enable IPv6 multicast routing, enable IPv6 PIM-SM on each interface, and enable MLD on GigabitEthernet 3/0/1.

<RouterC> system-view

[RouterC] multicast ipv6 routing-enable

[RouterC] interface GigabitEthernet 3/0/1

[RouterC-GigabitEthernet3/0/1] pim ipv6 sm

[RouterC-GigabitEthernet3/0/1] mld enable

[RouterC-GigabitEthernet3/0/1] quit

[RouterC] interface GigabitEthernet 3/0/2

[RouterC-GigabitEthernet3/0/2] pim ipv6 sm

5.     Configure Router D in the same way as you configure Router C. (Details not shown.)

6.     Configure Switch A:

# Enable MLD snooping globally.

<SwitchA> system-view

[SwitchA] mld-snooping

[SwitchA-mld-snooping] quit

# Create VLAN 100, assign GigabitEthernet 3/0/1 through GigabitEthernet 3/0/4 to this VLAN, and enable MLD snooping and IPv6 PIM snooping in the VLAN.

[SwitchA] vlan 100

[SwitchA-vlan100] port GigabitEthernet 3/0/1 to GigabitEthernet 3/0/4

[SwitchA-vlan100] mld-snooping enable

[SwitchA-vlan100] pim-snooping ipv6 enable

[SwitchA-vlan100] quit

Verifying the configuration

# On Switch A, display the IPv6 PIM snooping neighbor information of VLAN 100.

[SwitchA] display pim-snooping ipv6 neighbor vlan 100

  Total number of neighbors: 4

 

  VLAN ID: 100

    Total number of neighbors: 4

    Neighbor        Port                          Expires   Option Flags

    FE80::1         GE3/0/1                       02:02:23  LAN Prune Delay

    FE80::2         GE3/0/2                       03:00:05  LAN Prune Delay

    FE80::3         GE3/0/3                       02:22:13  LAN Prune Delay

    FE80::4         GE3/0/4                       03:07:22  LAN Prune Delay

The output shows that Router A, Router B, Router C, and Router D are IPv6 PIM snooping neighbors.

# On Switch A, display the IPv6 PIM snooping routing information of VLAN 100.

[SwitchA] display pim-snooping ipv6 routing-table vlan 100

  Total 2 entry(ies)

  FSM Flag: NI-no info, J-join, PP-prune pending

 

  VLAN ID: 100

    Total 2 entry(ies)

    (*, FF1E::101)

      Upstream neighbor: FE80::1

        Total number of downstream ports: 1

          1: GE3/0/3

    (*, FF2E::101)

      Upstream neighbor: FE80::2

        Total number of downstream ports: 1

          1: GE3/0/4

The output shows that Switch A will forward the multicast data intended for IPv6 multicast group FF1E::101 to only Router C, and forward the multicast data intended for IPv6 multicast group FF2E::101 to only Router D.

Troubleshooting IPv6 PIM snooping

IPv6 PIM snooping does not work

Symptom

IPv6 PIM snooping does not work.

Analysis

MLD snooping or IPv6 PIM snooping is not enabled on the switch.

Solution

1.     Use the display current-configuration command to determine the status of MLD snooping and IPv6 PIM snooping.

2.     If MLD snooping is not enabled, enter system view and use the mld-snooping command to enable MLD snooping globally. Then, enter VLAN view and use the mld-snooping enable and pim-snooping ipv6 enable commands to enable MLD snooping and IPv6 PIM snooping in the VLAN.

3.     If IPv6 PIM snooping is not enabled, enter VLAN view and use the pim-snooping ipv6 enable command to enable IPv6 PIM snooping in the VLAN.

Some downstream IPv6 PIM-capable routers cannot receive multicast data

Symptom

In a network with fragmented join/prune messages, some downstream IPv6 PIM-capable routers cannot receive multicast data.

Analysis

IPv6 PIM snooping cannot reassemble messages, and it cannot maintain the status of downstream routers that the join/prune message fragments carry. To ensure the normal operation of the system, IPv6 PIM snooping must broadcast join/prune message fragments in the VLAN. However, if the VLAN has a IPv6 PIM-capable router that has the join suppression function enabled, the broadcast join/prune message fragments might suppress the join messages of other IPv6 PIM-capable routers in the VLAN. As a result, some IPv6 PIM-capable routers cannot receive the multicast data addresses to a specific multicast group because their join messages are suppressed. To solve this problem, disable the join suppression function on all IPv6 PIM-capable routers that connect to the IPv6 PIM snooping-capable switch in the VLAN.

Solution

1.     Use the pim ipv6 hello-option neighbor-tracking command to enable the neighbor tracking function on the interfaces of IPv6 PIM-capable routers that connect to the IPv6 PIM snooping-capable switch.

2.     If an IPv6 PIM-capable router cannot be enabled with the neighbor tracking function, be sure to disable IPv6 PIM snooping on the switch.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网