immediate-leave
Syntax
Hierarchy Level
Release Information
Statement introduced in Junos OS Release 8.5.
Description
When this statement is enabled on a router running IGMPv2 snooping, after the router receives a leave group membership message from a host associated with the interface, the router immediately removes the group membership from the interface and suppresses the sending of any group-specific queries for the multicast group.
When this statement is enabled on a router running IGMPv3 snooping, after the router receives a report with the type BLOCK_OLD_SOURCES, the router suppresses the sending of group-and-source queries but relies on the Junos OS's host tracking mechanism to determine whether or not it removes a particular source group membership from the interface.
![]() | Note: When configuring this statement on IGMPv2 interfaces, ensure that the IGMP interface has only one IGMP host connected. If more than one IGMPv2 host is connected to a LAN through the same interface, and one host sends a leave message, the router removes all hosts on the interface from the multicast group. The router loses contact with the hosts that properly remain in the multicast group until they send join requests in response to the next general multicast listener query from the router. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.

