The igmp-snooping enable command enables IGMP snooping globally or in specified VLANs.
The undo igmp-snooping enable command disables IGMP snooping globally or in specified VLANs.
By default, IGMP snooping is disabled globally and in a VLAN.
igmp-snooping enable [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]
undo igmp-snooping enable [ vlan { all | { vlan-id1 [ to vlan-id2 ] } &<1-10> } ]
Parameter | Description | Value |
---|---|---|
vlan vlan-id1 [ to vlan-id2 ] |
Enables IGMP snooping in a VLAN or in multiple VLANs. vlan-id1 and vlan-id2 identify a range of VLAN IDs. If VLAN IDs are specified, IGMP snooping is enabled in the specified VLANs. If no VLAN ID is specified, IGMP snooping is enabled globally. |
The values of vlan-id1 and vlan-id2 are integers that range from 1 to 4094. |
all |
Disables IGMP snooping in all VLANs. |
- |
Usage Scenario
IGMP snooping runs on a Layer 2 device between a Layer 3 multicast device and hosts. By listening on the multicast protocol packets exchanged between the Layer 3 device and hosts, IGMP snooping maintains a multicast forwarding table to control Layer 2 multicast forwarding.
Before configuring IGMP snooping parameters, run the igmp-snooping enable command in the system view to enable IGMP snooping globally. Other IGMP snooping configuration commands can be used only after IGMP snooping is enabled globally.
You can enable IGMP snooping in multiple VLANs by using the igmp-snooping enable command in the system view.
Prerequisites
To enable IGMP snooping in multiple VLANs, ensure that IGMP snooping has been enabled globally.
Precautions
If you run the igmp-snooping enable vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> command multiple times, all the configurations take effect.
When you run the undo igmp-snooping enable command in the system view, the system displays a message, asking you whether to disable IGMP snooping globally. When you disable IGMP snooping globally, all the IGMP snooping configurations are deleted. When you run the igmp-snooping enable command to enable IGMP snooping globally again, the switch uses the default IGMP snooping configuration.
For the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S, the multicast functions (both Layer 2 and Layer 3 multicast functions) conflict with the flow control function.
The igmp snooping enable command in a VLAN and the igmp on-demand configuration of the VLANIF interface are mutually exclusive.
After global IGMP snooping is enabled on a switch, the switch sends all the IGMP messages received from a VLAN to the CPU for processing. If the multicast service is not configured in a VLAN and you want the switch to directly forward the IGMP messages of this VLAN without sending them to the CPU, run the protocol-transparent command in the VLAN view to enable transparent transmission of protocol packets.