IGMP snooping proxying configuration example (for VLANs)

Network requirements

As shown in Figure 17, Router A runs IGMPv2 and acts as the IGMP querier. Switch A runs IGMPv2 snooping. Configure IGMP snooping proxying so that Switch A can perform the following actions:

Figure 17: Network diagram

Configuration procedure

  1. Assign an IP address and subnet mask to each interface, as shown in Figure 17. (Details not shown.)

  2. Configure Router A:

    # Enable IP multicast routing.

    <RouterA> system-view
    [RouterA] multicast routing
    [RouterA-mrib] quit
    

    # Enable IGMP and PIM-DM on Ten-GigabitEthernet 1/0/1.

    [RouterA] interface ten-gigabitethernet 1/0/1
    [RouterA-Ten-GigabitEthernet1/0/1] igmp enable
    [RouterA-Ten-GigabitEthernet1/0/1] pim dm
    [RouterA-Ten-GigabitEthernet1/0/1] quit
    

    # Enable PIM-DM on Ten-GigabitEthernet 1/0/2.

    [RouterA] interface ten-gigabitethernet 1/0/2
    [RouterA-Ten-GigabitEthernet1/0/2] pim dm
    [RouterA-Ten-GigabitEthernet1/0/2] quit
    
  3. Configure Switch A:

    # Enable the IGMP snooping feature.

    <SwitchA> system-view
    [SwitchA] igmp-snooping
    [SwitchA-igmp-snooping] quit
    

    # Create VLAN 100, and assign Ten-GigabitEthernet 1/0/1 through Ten-GigabitEthernet 1/0/4 to the VLAN.

    [SwitchA] vlan 100
    [SwitchA-vlan100] port ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/4
    

    # Enable IGMP snooping and IGMP snooping proxying for VLAN 100.

    [SwitchA-vlan100] igmp-snooping enable
    [SwitchA-vlan100] igmp-snooping proxy enable
    [SwitchA-vlan100] quit
    

Verifying the configuration

# Send an IGMP report to join multicast group 224.1.1.1 from Host A and Host B. (Details not shown.)

# Display information about dynamic IGMP snooping group entries on Switch A.

[SwitchA] display igmp-snooping group
 Total 1 entries.

VLAN 100: Total 1 entries.
  (0.0.0.0, 224.1.1.1)
    Host ports (2 in total):
      XGE1/0/3                                     (00:04:00)
      XGE1/0/4                                     (00:04:04)

The output shows that Ten-GigabitEthernet1/0/1 and Ten-GigabitEthernet1/0/1 are member ports of multicast group 224.1.1.1. Both Host A and Host B will receive multicast data for the group

# Display information about IGMP group entries on Router A.

[RouterA] display igmp group
IGMP groups in total: 1
 Ten-GigabitEthernet1/0/1(10.1.1.1):
  IGMP groups reported in total: 1
   Group address   Last reporter   Uptime      Expires
   224.1.1.1       0.0.0.0         00:00:31    00:02:03

# Send an IGMP leave message to leave multicast group (224.1.1.1) from Host A. (Details not shown.)

# Display IGMP snooping group membership information on Switch A.

[SwitchA] display igmp-snooping group
Total 1 entries.

VLAN 100: Total 1 entries.
  (0.0.0.0, 224.1.1.1)
    Host ports (1 in total):
      XGE1/0/3                                     ( 00:01:23 )

The output shows that Ten-GigabitEthernet 1/0/4 (connected to Host A) has been deleted from the entry of multicast group (224.1.1.1).