Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure IGMP snooping Static Group Example

Network Requirements

  • Device 1 is configured with multicast routing protocol. Device 2 enables IGMP snooping in VLAN 2. PC1 and PC2 are receivers of IGMP snooping static group service and PC3 is the receiver of non-multicast service.
  • Multicast server sends multicast service packets, PC1 and PC2 can receive multicast service packets correctly, and PC3 cannot receive multicast service packets.

Network Topology

Network topology of configuring IGMP snooping static group

Figure 2-5 Network topology of configuring IGMP snooping static group

Configuration Steps

Step 1: On Device1, configure the interface IP address, and enable multicast routing protocol (omitted).

Step 2: Configure Device2.

#On Device2, create VLAN2.

Device2#configure terminal
Device2(config)#vlan 2
Device2(config-vlan2)#exit

#On Device2, configure the link type of ports gigabitethernet0/2~gigabitethernet0/4 as Access, permitting the services of VLAN2 to pass.

Device2(config)#interface gigabitethernet 0/2-0/4
Device2(config-if-range)#switchport access vlan 2
Device2(config-if-range)#exit

#On Device2, configure the link type of ports gigabitethernet0/1 as Trunk, permitting the services of VLAN2 to pass, and configured PVID as 1.

Device2(config)#interface gigabitethernet 0/1
Device2(config-if-gigabitethernet0/1)#switchport mode trunk
Device2(config-if-gigabitethernet0/1)#switchport trunk allowed vlan add 2
Device2(config-if-gigabitethernet0/1)#switchport trunk pvid vlan 1
Device2(config-if-gigabitethernet0/1)#exit

#In VLAN2, enable unknown multicast dropping.

Device2(config)#vlan 2
Device2(config-vlan2)#l2-multicast drop-unknown
Device2(config-vlan2)#l3-multicast drop-unknown
Device2(config-vlan2)#exit

#Enable IGMP snooping, and configure IGMP snooping static group.

Device2(config)#ip igmp snooping
Device2(config)#ip igmp snooping vlan 2
Device2(config)#ip igmp snooping vlan 2 static-group 224.1.1.1 interface gigabitethernet 0/2
Device2(config)#ip igmp snooping vlan 2 static-group 224.1.1.1 interface gigabitethernet 0/3
Device2(config)#exit

Step 3: Check the result.

#View the multicast member table of Device2.

Device2#show ip igmp snooping groups  
IGMP Snooping Static Group Membership
Total 2 group 
 
VLAN ID Port Name    Group Address  Uptime
------- ----------   -------------  ---------   
2       gi0/2        224.1.1.1      00:00:48   
2       gi0/3	     224.1.1.1      00:00:45  

#Multicast Server sends the multicast service packet with the destination address of 224.1.1.1. PC1 and PC2 can receive the multicast service packets correctly, and PC3 cannot receive the multicast service packets.