The igmp-snooping prompt-leave command enables the fast leave function in a VLAN so that member ports in the VLAN can fast leave multicast groups.
The undo igmp-snooping prompt-leave command disables the fast leave function in a VLAN.
By default, the fast leave function is disabled in a VLAN.
Parameter |
Description |
Value |
---|---|---|
group-policy |
Specifies a multicast group policy that allows member ports to fast leave some multicast groups. Before using this parameter, create an ACL and configure filter rules in the ACL. |
- |
acl-number | Specifies the number of an ACL that defines a range of multicast groups. A basic or advanced ACL can be used. |
The value is an integer that ranges from 2000 to 3999. |
Usage Scenario
The fast leave function enables the switch to delete the multicast forwarding entry of a multicast group from an interface immediately after the interface receives an IGMP Leave message for the group. This function saves bandwidth and system resources because the switch does not need to wait until the aging timer of the interface expires.
Prerequisites
IGMP snooping has been enabled globally using the igmp-snooping enable (system view) command.
Precautions
When an interface has more than one receiver connected, enabling the fast leave function interrupts multicast traffic of the other receivers in the multicast group. It is recommended that you enable this function only on interfaces with one receiver.
# Allow member ports in VLAN 2 to fast leave all groups.
<HUAWEI> system-view [HUAWEI] igmp-snooping enable [HUAWEI] vlan 2 [HUAWEI-vlan2] igmp-snooping enable [HUAWEI-vlan2] igmp-snooping prompt-leave
<HUAWEI> system-view [HUAWEI] igmp-snooping enable [HUAWEI] acl number 2000 [HUAWEI-acl-basic-2000] rule permit source 225.1.1.123 0 [HUAWEI-acl-basic-2000] quit [HUAWEI] vlan 3 [HUAWEI-vlan3] igmp-snooping enable [HUAWEI-vlan3] igmp-snooping prompt-leave group-policy 2000
<HUAWEI> system-view [HUAWEI] igmp-snooping enable [HUAWEI] acl number 2000 [HUAWEI-acl-basic-2000] rule deny source 225.1.1.123 0 [HUAWEI-acl-basic-2000] quit [HUAWEI] vlan 3 [HUAWEI-vlan3] igmp-snooping enable [HUAWEI-vlan3] igmp-snooping prompt-leave group-policy 2000