The igmp-snooping group-policy command applies a multicast group policy on an AC-side interface.
The undo igmp-snooping group-policy command deletes a multicast group policy from an AC-side interface.
By default, no multicast group policy is available on an AC-side interface bound to a VSI, and hosts in sites connected to the interface can join any multicast group.
igmp-snooping group-policy acl-number [ version version-number ] vsi vsi-name
undo igmp-snooping group-policy [ acl-number [ version version-number ] ] vsi vsi-name
Parameter |
Description |
Value |
---|---|---|
acl-number |
Specifies the number of the ACL that limits the multicast groups that hosts in a VSI can join. |
The value is an integer that ranges from 2000 to 3999. |
version version-number |
Applies the multicast group policy only to the IGMP messages of the specified version. |
The value is an integer that ranges from 1 to 3.
|
vsi vsi-name |
Specifies the VSI to which the multicast group policy is applied. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
GE interface view, 100GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, Eth-Trunk interface view
Usage Scenario
A multicast group policy controls the multicast programs that users can order on a device with IGMP snooping enabled. In multicast applications, user hosts send IGMP Report messages to join a group when they order programs of this group. When the upstream Layer 2 device receives the Report messages, the switch matches the Report messages with the ACL referenced in the group policy configured on the interface. If the messages match the ACL, the switch allows user hosts in the VSI to join the group and accepts the Report messages. If the messages do not match the ACL, the switch prevents the user hosts in the VSI from joining the group.
Prerequisites
IGMP snooping has been enabled globally using the igmp-snooping enable (system view) command.
Precautions
The configuration takes effect only when IGMP snooping is enabled in the VSI using the igmp-snooping enable (VSI view) command.
If no IGMP version is specified for a multicast policy, the switch applies the policy to all the received IGMP messages.
The igmp-snooping group-policy (interface view) applies a multicast group policy to the sites connected to an AC-side interface. You can also apply a multicast group policy to a VSI using the igmp-snooping group-policy (VSI view) command. If multicast group policies are configured for the same VSI in the VSI view and interface view, the system first uses the policy configured in the interface to filter the groups that hosts in the VSI can join, and then use the group configured in the VSI view.
On a VPLS network, ACs can be set up on different types of interfaces. The method to apply a multicast group policy to an AC-side interface various according to the type of the AC-side interface:
# Apply a multicast group policy to AC-side interface GE0/0/1 bound to the VSI company1, which allows hosts in the sites connected to GE0/0/1 to join group 225.1.1.123.
<HUAWEI> system-view [HUAWEI] acl number 2000 [HUAWEI-acl-basic-2000] rule permit source 225.1.1.123 0 [HUAWEI-acl-basic-2000] quit [HUAWEI] igmp-snooping enable [HUAWEI] igmp-snooping over-vpls enable [HUAWEI] vsi company1 [HUAWEI-vsi-company1] igmp-snooping enable [HUAWEI-vsi-company1] quit [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] igmp-snooping group-policy 2000 vsi company1