CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure IGMP

Network Requirements

  • The whole network runs the PIM-SM protocol.
  • Device1, Device2, and Receiver are in the same LAN and Device2 is the querier.
  • Receiver is one receiver of Device1 and Device2 end network.
  • Run IGMPv2 between Device1, Device2 and end network.

Network Topology

Networking of configuring IGMP

Figure 5-1 Networking of configuring IGMP

Configuration Steps

Step 1: Configure the IP address of the interface. (omitted)

Step 2: Globally enable the multicast forwarding and enable the multicast protocol PIM-SM on the interface.

#Configure Device1.

Globally enable the multicast forwarding and enable the multicast protocol PIM-SM on the related interfaces.

Device1(config)#configure terminal
Device1(config)#ip multicast-routing
Device1(config)#interface vlan2
Device1(config-if-vlan2)#ip pim sparse-mode
Device1(config-if-vlan2)#exit
Device1(config)#interface vlan4
Device1(config-if-vlan4)#ip pim sparse-mode
Device1(config-if-vlan4)#exit

#Configure Device2.

Globally enable the multicast forwarding and enable the multicast protocol PIM-SM on the related interfaces.

Device2(config)#configure terminal
Device2(config)#ip multicast-routing
Device2(config)#interface vlan3
Device2(config-if-vlan3)#ip pim sparse-mode
Device2(config-if-vlan3)#exit
Device2(config)#interface vlan4
Device2(config-if-vlan4)#ip pim sparse-mode
Device2(config-if-vlan4)#exit

Step3: Check the result.

#View the IGMP version information and querier election result of Device1 interface vlan4.

Device1#show ip igmp interface vlan4
Interface vlan4 (Index 50331921) 
 IGMP Active, Non-Querier (4.0.0.1, Expires: 00:02:15) 
 Default version 2  
 IP router alert option in IGMP V2 msgs: EXCLUDE 
 Internet address is 4.0.0.2  
 IGMP query interval is 125 seconds 
 IGMP querier timeout is 255 seconds 
 IGMP max query response time is 10 seconds configged, and 10 seconds is adopted 
 Last member query response interval is 1 seconds 
 Last member query count is 2  
 Group Membership interval is 260 seconds 
 IGMP robustness variable is 2

#View the IGMP version information and querier election result of Device2 interface vlan4.

Device2#show ip igmp interface vlan4
Interface vlan4 (Index 50331921) 
 IGMP Active, Querier (4.0.0.1)  
 Default version 2  
 IP router alert option in IGMP V2 msgs: EXCLUDE 
 Internet address is 4.0.0.1 
 IGMP query interval is 125 seconds 
 IGMP querier timeout is 255 seconds 
 IGMP max query response time is 10 seconds 
 Last member query response interval is 1 seconds 
 Last member query count is 2  
 Group Membership interval is 260 seconds 
 IGMP robustness variable is 2

#Receiver sends the IGMPv2 member relation report to add to multicast group 225.1.1.1.

#View the multicast member table of Device1.

Device1#show ip igmp groups
IGMP Connected Group Membership
Total 1 groups 
Group Address   Interface    Uptime     Expires     Last Reporter V1 Expires V2 Expires 
---------------------------------------------------------------------------------------
225.1.1.1       vlan4         00:21:02  00:03:47	4.0.0.100     stopped 

#View the multicast member table of Device2.

Device2#show ip igmp groups
IGMP Connected Group Membership
Total 1 groups 
Group Address   Interface   Uptime    Expires   Last Reporter V1 Expires V2 Expires 
-----------------------------------------------------------------------------------
225.1.1.1       vlan4       00:21:02  00:03:47  4.0.0.100     stopped 

note


  • After configuring the multicast protocol on the interface, automatically enable the IGMP function and run the IGMPv2 by default. You can configure the running IGMP version of the interface via the command ip igmp version.
  • When multiple devices un IGMP in one LAN, elect the IGMP querier and the one with the smallest address is elected as the IGMP querier of the LAN.