vlan (IGMP Snooping)
Syntax (EX Series and SRX-series:SRX 210)
vlan (all | vlan-name) { data-forwarding { receiver { install; mode (proxy | transparent); (source-list | source-vlans) vlan-list; translate; } source { groups group-prefix; } } disable; immediate-leave; interface (all | interface-name) { multicast-router-interface; static { group ip-address; } } proxy { source-address ip-address; } robust-count number; version number; }
Syntax (EX4600, NFX Series, QFabric Systems, and QFX Series)
vlan vlan-name { immediate-leave; interface interface-name { group-limit limit; host-only-interface; multicast-router-interface; static { group multicast-group-address { source ip-address; } } } (l2-querier | igmp-querier (QFabric Systems only)) { source-address ip-address; } qualified-vlan ; proxy { source-address ip-address; } query-interval seconds; query-last-member-interval seconds; query-response-interval seconds; robust-count number; }
Hierarchy Level
[edit protocols igmp-snooping]
Description
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.
Default
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.
Options
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:
protocols { igmp-snooping { vlan all { robust-count 8; } vlan employee { interface ge-0/0/8.0 { static { group 239.0.10.3 } } } } }
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.