Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


vlan (IGMP Snooping)

Syntax (EX Series and SRX-series:SRX 210)

Syntax (EX4600, NFX Series, QFabric Systems, and QFX Series)

Hierarchy Level


Configure IGMP snooping parameters for a VLAN (or all VLANs if you use the all option, where supported).

On legacy EX Series switches, which do not support the Enhanced Layer 2 Software (ELS) configuration style, IGMP snooping is enabled by default on all VLANs, and this statement includes a disable option if you want to disable IGMP snooping selectively on some VLANs or disable it on all VLANs. Otherwise, IGMP snooping is enabled on the specified VLANs if you configure any statements and options in this hierarchy.


You cannot configure IGMP snooping on a secondary (private) VLAN (PVLAN). However, starting in Junos OS Release 18.3R1 on EX4300 switches and EX4300 Virtual Chassis, and Junos OS Release 19.2R1 on EX4300 multigigabit switches, enabling IGMP snooping on a primary VLAN implicitly enables IGMP snooping on its secondary VLANs. See IGMP Snooping on Private VLANs (PVLANs) for details.


To display a list of all configured VLANs on the system, including VLANs that are configured but not committed, type ? after vlan or vlans on the command line in configuration mode. Note that only one VLAN is displayed for a VLAN range, and for IGMP snooping, secondary private VLANs are not listed.


On devices that support the all option, by default, IGMP snooping options apply to all VLANs . For all other devices, you must specify the vlan statement with a VLAN name to enable IGMP snooping.


  • all—All VLANs on the switch. This option is available only on EX Series switches that do not support the ELS configuration style.

  • disable—Disable IGMP snooping on all or specified VLANs. This option is available only on EX Series switches that do not support the ELS configuration style.

  • vlan-name—Name of a VLAN. A VLAN name must be provided on switches that support ELS to enable IGMP snooping.


On devices that support the all option, when you configure IGMP snooping parameters using the vlan all statement, any VLAN that is not individually configured for IGMP snooping inherits the vlan all configuration. Any VLAN that is individually configured for IGMP snooping, on the other hand, inherits none of its configuration from vlan all. Any parameters that are not explicitly defined for the individual VLAN assume their default values, not the values specified in the vlan all configuration.

For example, in the following configuration:

all VLANs, except employee, have a robust count of 8. Because employee has been individually configured, its robust count value is not determined by the value set under vlan all. Instead, its robust count is the default value of 2.

The remaining statements are explained separately. See CLI Explorer.

Required Privilege Level

routing—To view this statement in the configuration.routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.5.

Statement updated with enhanced ? (CLI completion feature) functionality in Junos OS Release 9.5 for EX Series switches.