Basic IGMP features configuration example
Network requirements
As shown in Figure 38:
OSPF and PIM-DM run on the network.
VOD streams are sent to receiver hosts in multicast. Receiver hosts of different organizations form stub networks N1 and N2. Host A and Host C are receiver hosts in N1 and N2, respectively.
IGMPv2 runs between Switch A and N1, and between the other two switches and N2. Switch A acts as the IGMP querier in N1. Switch B acts as the IGMP querier in N2 because it has a lower IP address.
Configure the routers to meet the following requirements:
The hosts in N1 can join only multicast group 224.1.1.1.
The hosts in N2 can join any multicast groups.
Figure 38: Network diagram
Configuration procedure
Assign an IP address and subnet mask to each interface, as shown in Figure 38. (Details not shown.)
Configure OSPF on the switches in the PIM-DM domain. (Details not shown.)
Enable IP multicast routing, IGMP, and PIM-DM:
# On Switch A, enable IP multicast routing.
<SwitchA> system-view [SwitchA] multicast routing [SwitchA-mrib] quit
# Enable IGMP on VLAN-interface 100.
[SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] igmp enable [SwitchA-Vlan-interface100] quit
# Enable PIM-DM on VLAN-interface 101.
[SwitchA] interface vlan-interface 101 [SwitchA-Vlan-interface101] pim dm [SwitchA-Vlan-interface101] quit
# On Switch B, enable IP multicast routing.
<SwitchB> system-view [SwitchB] multicast routing [SwitchB-mrib] quit
# Enable IGMP on VLAN-interface 200.
[SwitchB] interface vlan-interface 200 [SwitchB-Vlan-interface200] igmp enable [SwitchB-Vlan-interface200] quit
# Enable PIM-DM on VLAN-interface 201.
[SwitchB] interface vlan-interface 201 [SwitchB-Vlan-interface201] pim dm [SwitchB-Vlan-interface201] quit
# On Switch C, enable IP multicast routing.
<SwitchC> system-view [SwitchC] multicast routing [SwitchC-mrib] quit
# Enable IGMP on VLAN-interface 200.
[SwitchC] interface vlan-interface 200 [SwitchC-Vlan-interface200] igmp enable [SwitchC-Vlan-interface200] quit
# Enable PIM-DM on VLAN-interface 202.
[SwitchC] interface vlan-interface 202 [SwitchC-Vlan-interface202] pim dm [SwitchC-Vlan-interface202] quit
Configure a multicast group policy on Switch A so that hosts connected to VLAN-interface 100 can join only multicast group 224.1.1.1.
[SwitchA] acl basic 2001 [SwitchA-acl-ipv4-basic-2001] rule permit source 224.1.1.1 0 [SwitchA-acl-ipv4-basic-2001] quit [SwitchA] interface vlan-interface 100 [SwitchA-Vlan-interface100] igmp group-policy 2001 [SwitchA-Vlan-interface100] quit
Verifying the configuration
# Display IGMP information for VLAN-interface 200 on Switch B.
[SwitchB] display igmp interface vlan-interface 200 Vlan-interface200(10.110.2.1): IGMP is enabled. IGMP version: 2 Query interval for IGMP: 125s Other querier present time for IGMP: 255s Maximum query response time for IGMP: 10s Querier for IGMP: 10.110.2.1 (This router) IGMP groups reported in total: 1