CISCO NX-OS Configuring Lgmp Snooping User Guide
Information About IGMP Snooping
The IGMP snooping software examines IGMP protocol messages within a VLAN to discover which interfaces are connected to hosts or other devices interested in receiving this traffic. Using the interface information, IGMP snooping can reduce bandwidth consumption in a multiaccess LAN environment to avoid flooding the entire VLAN. The IGMP snooping feature tracks which ports are attached to multicast-capable routers to help it manage the forwarding of IGMP membership reports. The IGMP snooping software responds to topology change notifications.

Note
Figure 1: IGMP Snooping Switch
The Cisco NX-OS IGMP snooping software supports optimized multicast flooding (OMF) that forwards unknown traffic to routers only and performs no data driven state creation. For more information about IGMP snooping, see http://tools.ietf.org/wg/magma/draft-ietf-magma-snoop/rfc4541.txt.
IGMPv1 does not provide an explicit IGMP leave message, so the software must rely on the membership message timeout to indicate that no hosts remain that want to receive multicast data for a particular group.
Note
Cisco NX-OS ignores the configuration of the last member query interval when you enable the fast leave feature because it does not check for remaining hosts.
IGMPv3
The IGMPv3 snooping implementation on the switch forwardsIGMPv3 reportsto allow the upstream multicast router to do source-based filtering.
By default, the software tracks hosts on each VLAN port. The explicit tracking feature provides a fast leave mechanism.
Even though the IGMPv3 membership reports provide a full accounting of group members on a LAN segment, when the last host leaves, the software sends a membership query. You can configure the parameter last member query interval. If no host responds before the timeout, the software removes the group state.
Configuring IGMP Snooping Parameters
Parameter | Description |
IGMP snooping | Enables IGMP snooping on a per-VLAN basis. The default is enabled.Note If the global setting is disabled, all VLANs are treated as disabled, whether they are enabled or not. |
Explicit tracking | Tracks IGMPv2 and IPMPv3 membership reports from individual hosts for each port on a per-VLAN basis. The default is enabled. |
Fast leave | Enables the software to remove the group state when it receives an IGMP Leave report without sending an IGMP query message. This parameter is used forIGMPv2 hosts when no more than one host is present on each VLAN port. The default is disabled. |
Last member query interval | Sets the interval that the software waits after sending an IGMP query to verify that no hosts that want to receive a particular multicast group remain on a network segment. If no hosts respond before the last member query interval expires, the software removes the group from the associated VLAN port. Values range from 1 to 25 seconds. The default is 1 second. |
Snooping querier | Configures a snooping querier on an interface when there is no multicast router in the VLAN to generate queries. The default is disabled. |
Report suppression | Limits the membership report traffic sent to multicast-capable routers. When you disable report suppression, all IGMP reports are sent as is to multicast-capable routers. The default is enabled. |
Multicast router | Configures a static connection to a multicast router. The interface to the router must be in the selected VLAN. |
Static group | Configures an interface that belongs to a VLAN as a static member of a multicast group. |
You can disable IGMP snooping either globally or for a specific VLAN.
SUMMARY STEPS
- switch# configure terminal
- switch(config)# ip igmp snooping
- switch(config)# vlan configuration vlan-id
- switch(config-vlan)# ip igmp snooping
- switch(config-vlan)# ip igmp snooping explicit-tracking
- switch(config-vlan)# ip igmp snooping fast-leave
- switch(config-vlan)# ip igmp snooping last-member-query-interval seconds
- switch(config-vlan)# ip igmp snooping querier IP-address
- switch(config-vlan)# ip igmp snooping report-suppression
- switch(config-vlan)# ip igmp snooping mrouter interface interface
- switch(config-vlan)# ipigmpsnooping static-groupgroup-ip-addr [source source-ip-addr] interface interface
Command or Action | Purpose | |
Step 1 | switch# configure terminal | Enters global configuration mode. |
Step 2 | switch(config)# ip igmp snooping | Globally enables IGMP snooping. The default is enabled.Note If the global setting is disabled, all VLANs are treated as disabled, whether they areenabled or not. |
Step 3 | switch(config)# vlan configuration vlan-id | Enters VLAN configuration mode. |
Step 4 | switch(config-vlan)# ip igmp snooping | Enables IGMP snooping for the current VLAN. The default is enabled.Note If IGMP snooping is enabled globally, this command is not required. |
Step 5 | switch(config-vlan)# ip igmp snooping explicit-tracking | Tracks IGMPv2 and IGMPv3 membership reports from individual hosts for each port on a per-VLAN basis. The default is enabled on all VLANs. |
Step 6 | switch(config-vlan)# ip igmp snooping fast-leave | Supports IGMPv2 hosts that cannot be explicitly tracked because of the host report suppression mechanism of the IGMPv2 protocol. When you enable fast leave, the IGMP software assumes that no more than one host is present on each VLAN port. The default is disabled for all VLANs. |
Step 7 | switch(config-vlan)# ip igmp snooping last-member-query-interval seconds | Removes the group from the associated VLAN port if no hosts respond to an IGMP query message before the last member query interval expires. Values range from 1 to 25 seconds. The default is 1 second. |
Step 8 | switch(config-vlan)# ip igmp snooping querierIP-address | Configures a snooping querier when you do not enable PIM because multicast traffic does not need to be routed. |
Command or Action | Purpose | |
The IP address is used as the source in messages. Thedefault is disabled. | ||
Step 9 | switch(config-vlan)# ip igmp snooping report-suppression | Limits the membership report traffic sent to multicast-capable routers. When you disable report suppression, all IGMP reports are sent as is to multicast-capable routers. The default is enabled. |
Step 10 | switch(config-vlan)# ip igmp snooping mrouter interfaceinterface | Configures a static connection to a multicast router. The interface to the router must be in the selected VLAN. You can specify the interface by type and number. |
Step 11 | switch(config-vlan)# ip igmp snooping static-groupgroup-ip-addr [source source-ip-addr] interface interface | Configures an interface belonging to a VLAN as a static member of a multicast group. You can specify the interface by type and number. |
Example
This example shows how to configure IGMP snooping parameters for a VLAN:
switch# configure terminal
switch(config)# vlan configuration 5
switch(config-vlan)# ip igmp snooping last-member-query-interval 3
switch(config-vlan)# ip igmp snooping querier 172.20.52.106
switch(config-vlan)# ip igmp snooping explicit-tracking
switch(config-vlan)# ip igmp snooping fast-leave
switch(config-vlan)# ip igmp snooping report-suppression
switch(config-vlan)# ip igmp snooping mrouter interface ethernet 1/10
switch(config-vlan)# ip igmp snooping static-group 230.0.0.1 interface ethernet 1/10
switch(config-vlan)# end
Verifying the IGMP Snooping Configuration
Use the following commands to verify the IGMP snooping configuration.
Command | Description |
show ip igmp snooping [[vlan] vlan-id] | Displays IGMP snooping configuration by VLAN. |
show ip igmp snooping groups [[vlan] vlan-id] [detail] | Displays IGMP snooping information about groups by VLAN. |
show ip igmp snooping querier [[vlan] vlan-id] | Displays IGMP snooping queriers by VLAN. |
show ip igmp snooping mrouter [[vlan] vlan-id] | Displays multicast router ports by VLAN. |
show ip igmp snooping explicit-tracking vlanvlan-id | Displays IGMP snooping explicit tracking information by VLAN. |

Note
Global IGMP Snooping Information:
IGMP Snooping enabled
IGMP Snooping information for vlan 1
IGMP snooping enabled
IGMP querier none
Switch-querier disabled
Explicit tracking enabled
Fast leave disabled
Report suppression enabled
Router port detection using PIM Hellos, IGMP Queries
Number of router-ports: 0
Number of groups: 0
IGMP Snooping information for vlan 5
IGMP snooping enabled
IGMP querier present, address: 192.0.2.1, version: 3
Querier interval: 125 secs
Querier last member query interval: 10 secs
Querier robustness: 2
Switch-querier enabled, address 192.0.2.1, currently running
Explicit tracking enabled
Fast leave enabled
Report suppression enabled
Router port detection using PIM Hellos, IGMP Queries
Number of router-ports: 1
Number of groups: 1
IGMP Snooping Explicit-tracking information
Vlan Source/Group
Intf Reporter Uptime Last-Join Expires Ver Reports
100 */225.1.1.69
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.70
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.71
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.72
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.73
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.74
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.75
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.76
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.77
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
100 */225.1.1.78
Eth1/43 10.1.1.2 00:00:02 00:00:02 00:04:17 v2 1
switch#:

Documents / Resources
![]() |
CISCO NX-OS Configuring Lgmp Snooping [pdf] User Guide NX-OS Configuring Lgmp Snooping, NX-OS, Configuring Lgmp Snooping, Lgmp Snooping, Snooping |