The igmp prompt-leave command enables the fast leave function on an interface. This function enables an IGMP querier to delete IGMP entries immediately after receiving Leave messages from group members, without sending Group-Specific Query messages.
The undo igmp prompt-leave command disables fast leave on an interface.
By default, an IGMP querier sends a Group-Specific Query message after receiving a Leave message for a specific multicast group.
Parameter | Description | Value |
---|---|---|
group-policy | Specifies an IGMP group policy. If this parameter is specified, the fast leave function takes effect only for multicast groups specified in the policy. When specifying this parameter, ensure that the referenced ACL has been configured.
The device filters Leave messages on the interface based on the ACL.
If this parameter is not specified, the fast leave function takes effect for all multicast groups. |
- |
acl-number | Specifies the number of a basic ACL or an advanced ACL. This ACL defines a range of multicast groups. The specified ACL is configured using the acl command. |
The number of a basic ACL is an integer that ranges from 2000 to 2999. The number of an advanced ACL ranges from 3000 to 3999. |
GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, GE sub-interface view, XGE sub-interface view, MultiGE sub-interface view, 25GE sub-interface view, 40GE sub-interface view, 100GE sub-interface view, Eth-Trunk sub-interface view, VLANIF interface view, loopback interface view
Usage Scenario
In some scenarios, a querier interface connects to only one receiver host. If the host frequently switches between multiple multicast groups, you can configure the fast leave function on the interface so that the interface can quickly respond to Leave messages sent from the host. After the fast leave function is configured, the querier does not send a Group-Specific Query message after receiving a Leave message. Instead, the querier directly notifies the upstream multicast device that the host has left the multicast group. The fast leave function reduces delay in response to Leave messages and saves network bandwidth.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.
Precautions
# Create ACL 2005 and configure a rule that allows hosts to fast leave multicast groups in the range of 225.1.0.0/16. Configure fast leave on VLANIF100.
<HUAWEI> system-view [HUAWEI] acl number 2005 [HUAWEI-acl-basic-2005] rule permit source 225.1.0.0 0.0.255.255 [HUAWEI-acl-basic-2005] quit [HUAWEI] multicast routing-enable [HUAWEI] interface vlanif 100 [HUAWEI-Vlanif100] igmp prompt-leave group-policy 2005
<HUAWEI> system-view [HUAWEI] acl number 2005 [HUAWEI-acl-basic-2005] rule permit source 225.1.0.0 0.0.255.255 [HUAWEI-acl-basic-2005] quit [HUAWEI] multicast routing-enable [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] igmp prompt-leave group-policy 2005