2-6 
 
Description 
Use the igmp group-policy command to configure a multicast group filter on the current interface to 
control the access to the multicast groups in the defined group range.  
Use undo igmp group-policy command to remove the multicast group filter configured. 
By default, no filter is configured; that is, a host can join any multicast group.  
If you do not want the hosts on the network attached to the interface to join some multicast groups, use 
this command to limit the range of the multicast groups served by the interface. 
Related commands: igmp host-join. 
 
 
Be sure that the Ethernet ports specified in the command belong to the VLAN interfaces on which the 
command is configured, but not other VLAN interfaces.  
 
Examples 
# Configure a multicast group filter on VLAN-interface 10 so that the hosts on the subnet attached to the 
interface can join only multicast group 225.1.1.1 and the interface accepts only IGMPv2 reports.  
<Sysname> system-view 
System View: return to User View with Ctrl+Z. 
[Sysname] acl number 2000 
[Sysname-acl-basic-2000] rule permit source 225.1.1.1 0 
[Sysname-acl-basic-2000] quit 
[Sysname] interface Vlan-interface 10 
[Sysname-Vlan-interface10] igmp group-policy 2000 2 
igmp group-policy vlan 
Syntax 
igmp group-policy acl-number vlan vlan-id 
undo igmp group-policy vlan vlan-id 
View 
Ethernet port view 
Parameters 
acl-number: Basic ACL number, defining a multicast group range. The value ranges from 2,000 to 
2,999.  
vlan vlan-id: Specifies the VLAN to which the current port belongs. The effective range for vlan-id is 1 to 
4094.