IGMP Snooping Configuration Commands

Use these commands to configure IGMP snooping.

The switch supports IGMP Versions 1, 2, and 3. The IGMP snooping feature can help conserve bandwidth because it allows the switch to forward IP multicast traffic only to connected hosts that request multicast traffic. IGMPv3 adds source filtering capabilities to IGMP versions 1 and 2.

Note: This note clarifies the prioritization of MGMD Snooping Configurations. Many of the IGMP/MLD Snooping commands are available both in the Interface and VLAN modes. Operationally the system chooses or prefers the VLAN configured values over the Interface configured values for most configurations when the interface participates in the VLAN.

set igmp

M4250

M4350

This command enables IGMP Snooping on the system (Global Config Mode), an interface, or a range of interfaces. This command can also enable IGMP snooping on a particular VLAN (VLAN Config mode, also referred to as VLAN Database mode) and can enable IGMP snooping on all interfaces participating in a VLAN.

If an interface has IGMP Snooping enabled and you enable this interface for routing or enlist it as a member of a port-channel (LAG), IGMP Snooping functionality is disabled on that interface. IGMP Snooping functionality is re-enabled if you disable routing or remove port-channel (LAG) membership from an interface that has IGMP Snooping enabled.

The IGMP application supports the following activities:

  • Validation of the IP header checksum (as well as the IGMP header checksum) and discarding of the frame upon checksum error.
  • Maintenance of the forwarding table entries based on the MAC address versus the IP address.
  • Filters unknown IPv4 multicast packets on a VLAN if IGMP snooping is enabled, with the exception of group addresses in the range 224.0.0.x. These control packets are always flooded to all ports in the VLAN.
Format set igmp
Mode

Global Config

Interface Config

Default Enabled for VLAN 1; Disabled for other VLANs.
Format set igmp [vlan-id]
Mode VLAN Config (also referred to as VLAN Database)

no set igmp

This command disables IGMP Snooping on the system, an interface, a range of interfaces, or a VLAN.

Format no set igmp
Mode

Global Config

Interface Config

Format no set igmp [vlan-id]
Mode VLAN Config (also referred to as VLAN Database)

set igmp interfacemode

M4250

M4350

This command enables IGMP Snooping on all interfaces. If an interface has IGMP Snooping enabled and you enable this interface for routing or enlist it as a member of a port-channel (LAG), IGMP Snooping functionality is disabled on that interface. IGMP Snooping functionality is re-enabled if you disable routing or remove port-channel (LAG) membership from an interface that has IGMP Snooping enabled.

Default Disabled
Format set igmp interfacemode
Mode Global Config

no set igmp interfacemode

This command disables IGMP Snooping on all interfaces on the switch at the same time. It is disabled by default. This command does not take effect on the interface where routing is enabled or is a member of a port-channel (LAG). Disable routing on the interface before setting IGMP Snooping. The interface that is a member of a port-channel (LAG) must be removed before setting IGMP Snooping.

Default Disabled
Format no set igmp interfacemode
Mode Global Config

set igmp fast-leave

M4250

M4350

This command enables or disables IGMP Snooping fast-leave on a selected interface, a range of interfaces, or a VLAN.

When you enable fast-leave, the switch immediately removes a layer 2 LAN interface from its forwarding table if the following situation occurs:

  1. The switch does not send MAC-based general queries to the layer 2 LAN interface.
  2. The switch receives an IGMP leave message for the associated multicast group.

Enable fast-leave only on VLANs for which a single host is connected to each layer 2 LAN interface. Doing so prevents the inadvertent dropping of other hosts that are connected to the same layer 2 LAN interface but are still interested in receiving multicast traffic that is directed to the multicast group.

Fast-leave processing is supported for IGMPv2 hosts only.

Format set igmp fast-leave
Mode Interface Config
Format set igmp fast-leave vlan-id
Mode VLAN Config (also referred to as VLAN Database)

no set igmp fast-leave

This command disables IGMP Snooping fast-leave admin mode on a selected interface.

Format no set igmp fast-leave
Mode Interface Config
Format no set igmp fast-leave vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set igmp fast-leave auto-assignment

M4250

M4350

This command globally enables the automatic assignment of fast-leave for all ports and LAGs.

On the switch, Rapid Spanning Tree Protocol (RSTP) is the default network protocol for STP. RSTP functions at port level. Each port starts up as an edge port and functions in that capacity until it receives an RSTP BPDU from a neighbor device. An edge port does not participate in STP and is meant to be connected to end devices or hosts on which STP is not enabled. However, if a port receives an RSTP BPDU, the port stops functioning as an edge port and starts participating in STP.

Consequently, as long as the port functions as an edge port, IGMP Snooping fast-leave is enabled. If a port receives an RSTP BPDU and stops functioning as an edge port, IGMP Snooping fast-leave is also disabled on the port.

The set igmp fast-leave auto-assignment command controls the fast-leave operational state, but not the configured value. On a port, a dynamically-assigned operational value for fast-leave overrides a configured value for fast-leave.

The set igmp fast-leave auto-assignment command does the following:

  • It overrides the configured port level fast-leave mode, which is disabled by default.
  • It does not modify the VLAN configuration for fast-leave mode.

Between a port and a VLAN that is configured for that port, IGMP Snooping gives precedence to the fast-leave mode for the port.

You can display the operational status of IGMP Snooping fast-leave at port level by using the show igmpsnooping fast-leave command (see show igmpsnooping fast-leave).

Default Enabled
Format set igmp fast-leave auto-assignment
Mode Global Config

no set igmp fast-leave auto-assignment

This command globally disables the automatic assignment of fast-leave for all ports and LAGs.

Format no set igmp fast-leave auto-assignment
Mode Global Config

set igmp groupmembership-interval

M4250

M4350

This command sets the IGMP group membership interval time on a VLAN, one interface, a range of interfaces, or all interfaces. The group membership interval time is the amount of time in seconds that a switch waits for a report from a particular group on a particular interface before deleting the interface from the entry. This value must be greater than the IGMPv3 maximum response time value. The range is 2 to 3600 seconds.

Default 260 seconds
Format set igmp groupmembership-interval seconds
Mode

Interface Config

Global Config

Default 260 seconds
Format set igmp groupmembership-interval vlan-id seconds
Mode VLAN Config (also referred to as VLAN Database)

no set igmp groupmembership-interval

This command sets the IGMPv3 group membership interval time to the default value.

Format no set igmp groupmembership-interval
Mode

Interface Config

Global Config

Format no set igmp groupmembership-interval vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set igmp maxresponse

M4250

M4350

This command sets the IGMP maximum response time for the system, on a particular interface or VLAN, or on a range of interfaces. The maximum response time is the amount of time in seconds that a switch will wait after sending a query on an interface because it did not receive a report for a particular group in that interface. This value must be less than the IGMP query Interval time value. The range is 1 to 300 seconds.

Default 600 seconds
Format set igmp maxresponse seconds
Mode

Global Config

Interface Config

Default 600 seconds
Format set igmp maxresponse vlan-id seconds
Mode VLAN Config (also referred to as VLAN Database)

no set igmp maxresponse

This command sets the max response time (on the interface or VLAN) to the default value.

Format no set igmp maxresponse
Mode

Global Config

Interface Config

Format no set igmp maxresponse vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set igmp mcrtrexpiretime

M4250

M4350

This command sets the multicast router present expiration time. The time is set for the system, on a particular interface or VLAN, or on a range of interfaces. This is the amount of time in seconds that a switch waits for a query to be received on an interface before the interface is removed from the list of interfaces with multicast routers attached. The range is 0 to 3600 seconds. A value of 0 indicates an infinite time-out, that is, no expiration.

Default 0
Format set igmp mcrtrexpiretime seconds
Mode

Global Config

Interface Config

Default 0
Format set igmp mcrtrexpiretime vlan-id seconds
Mode VLAN Config (also referred to as VLAN Database)

no set igmp mcrtrexpiretime

This command sets the multicast router present expiration time to 0. The time is set for the system, on a particular interface or a VLAN.

Format no set igmp mcrtrexpiretime
Mode

Global Config

Interface Config

Format no set igmp mcrtrexpiretime vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set igmp mrouter

M4250

M4350

This command configures the VLAN ID that has the multicast router mode enabled.

Format set igmp mrouter vlan-id
Mode Interface Config

no set igmp mrouter

This command disables multicast router mode for a particular VLAN ID.

Format no set igmp mrouter vlan-id
Mode Interface Config

set igmp mrouter interface

M4250

M4350

This command configures the interface or range of interfaces as a multicast router interface. When configured as a multicast router interface, the interface is treated as a multicast router interface in all VLANs.

Default disabled
Format set igmp mrouter interface
Mode Interface Config

no set igmp mrouter interface

This command disables the status of the interface as a statically configured multicast router interface.

Format no set igmp mrouter interface
Mode Interface Config

set igmp flood-report

M4250

M4350

This command lets the switch forward IGMP Join/Leave PDUs to all other ports, either globally or in a VLAN. These are IGMP Join/Leave PDUs that the switch receives from a host that is connected to a downstream port.

Format set igmp flood report
Mode Global Config
Format set igmp flood report vlan-id
Mode VLAN Config (also referred to as VLAN Database)

no set igmp flood-report

This command prevents the switch from forwarding IGMP Join/Leave PDUs to all other ports, either globally or in a VLAN.

Format no set igmp flood report
Mode Global Config
Format no set igmp flood report vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set igmp exclude-mrouter-intf

M4250

M4350

This command lets the switch forward IGMP Join/Leave PDUs to an upstream multicast router interface. These are IGMP Join/Leave PDUs that the switch receives from a host that is connected to a downstream port. In addition, the switch forwards a multicast data stream to an upstream mrouter interface only if that port already received an IGMPv1 or IGMPv2 membership message. This behavior does not apply to IGMPv3 membership.

Format set igmp exclude-mrouter-intf
Mode Global Config
Format set igmp exclude-mrouter-intf vlan-id
Mode VLAN Config (also referred to as VLAN Database)

A designated mrouter port that is either detected dynamically or manually configured forwards the following information to the upstream router:

  • All IGMPv1, IGMPv2, and IGMPv3 PDUs.
  • All unknown multicast streams, that is, streams for which the switch did not receive IGMP membership.
  • All known multicast streams, that is, streams for which the switch did receive IGMP membership and for which it updated its hardware MFDB table.

Use the set igmp exclude-mrouter-intf command to prevent the switch from forwarding unknown and known IGMPv1 and IGMPv2 multicast streams unless the downstream port received an IGMPv1 or IGMPv2 membership. The switch still forwards all IGMPv1, IGMPv2, and IGMPv3 PDUs.

no set igmp exclude-mrouter-intf

This command prevents the switch from forwarding IGMP Join/Leave PDUs to an upstream multicast router interface.

Format no set igmp exclude-mrouter-intf
Mode Global Config
Format no set igmp exclude-mrouter-intf vlan-id
Mode VLAN Config (also referred to as VLAN Database)

set igmp report-suppression

M4250

M4350

Use this command to suppress the IGMP reports on a VLAN. To optimize the number of reports traversing the network with no added benefits, a Report Suppression mechanism is implemented. When more than one client responds to an MGMD query for the same Multicast Group address within the max-response-time, only the first response is forwarded to the query and others are suppressed at the switch.

Default Disabled
Format set igmp report-suppression vlan-id
Mode VLAN Config (also referred to as VLAN Database)
Parameter Description
vlan-id A valid VLAN ID. Range is 1 to 4093.

Command example:

CODE
(NETGEAR Switch) #vlan database
(NETGEAR Switch) (Vlan)#set igmp report-suppression ?

<1-4093>                 Enter VLAN ID.

(NETGEAR Switch) (Vlan)#set igmp report-suppression 1

no set igmp report-suppression

Use this command to return the system to the default.

Format no set igmp report-suppression
Mode VLAN Config (also referred to as VLAN Database)

set igmp header-validation

M4250

M4350

This command enables IGMP IP header validation.

If IGMP IP header validation is enabled, three fields, TTL (Time To Live), ToS (Type of Service), and Router Alert options, are checked. The actual validated fields depend on the IGMP version. The TTL field is validated in all the versions (IGMPv1, IGMPv2, and IGMPv3). The Router Alert field is validated in IGMPv2 and IGMPv3. The ToS field is validated only in IGMP version 3.

Default Enabled
Format set igmp header-validation
Mode Global Config

no set igmp header-validation

This command disables the IGMP IP header validation.

Format no set igmp header-validation
Mode Global Config

set igmp-plus (Global Config)

M4250

M4350

This command enables all of the following global IGMP Snooping configuration commands:

  • set igmp
  • set igmp querier
  • set igmp flood-report
  • set igmp exclude-mrouter-intf
  • set igmp fast-leave auto-assignment
Default Enabled
Format set igmp-plus
Mode Global Config

no set igmp-plus (Global Config)

This command disables all of the following global IGMP Snooping configuration commands:

  • set igmp
  • set igmp querier
  • set igmp flood-report
  • set igmp exclude-mrouter-intf
  • set igmp fast-leave auto-assignment
Format no set igmp-plus
Mode Global Config

set igmp-plus (VLAN Config)

M4250

M4350

After you enable the set igmp-plus command, you can enable the set igmp-plus vlan command to enable all of the following global IGMP Snooping configuration commands at the VLAN level for a particular VLAN:

  • set igmp vlan-id
  • set igmp exclude-mrouter-intf vlan-id
  • set igmp fast-leave vlan-id
  • set igmp flood-report vlan-id
  • set igmp querier vlan-id
  • set igmp querier election participate vlan-id

The vlan argument in the set igmp-plus vlan-id command can be a VLAN from 1 to 4093.

Default Enabled for VLAN 1
Format set igmp-plus vlan-id
Mode VLAN Config (also referred to as VLAN Database)

no set igmp-plus (VLAN Config)

This command disables all of the following global IGMP Snooping configuration commands at the VLAN level for a particular VLAN:

  • set igmp vlan-id
  • set igmp exclude-mrouter-intf vlan-id
  • set igmp fast-leave vlan-id
  • set igmp flood-report vlan-id
  • set igmp querier vlan-id
  • set igmp querier election participate vlan-id

The vlan argument in the no set igmp-plus vlan-id command can be a VLAN from 1 to 4093.

Format no set igmp-plus vlan-id
Mode VLAN Config (also referred to as VLAN Database)

show igmpsnooping

M4250

M4350

This command displays IGMP Snooping information for an interface, VLAN, or LAG. Configured information is displayed whether or not IGMP Snooping is enabled. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show igmpsnooping [unit/slot/port | vlan-id | lag lag-id]
Mode Privileged EXEC

If you do not use the optional arguments unit/slot/port, vlan-id, or lag-id the command displays the following information.

Term Definition
Admin Mode Indicates whether or not IGMP Snooping is active on the switch.
Multicast Control Frame Count The number of multicast control frames that are processed by the CPU.
Interface Enabled for IGMP Snooping The list of interfaces on which IGMP Snooping is enabled.
VLANS Enabled for IGMP Snooping The list of VLANS on which IGMP Snooping is enabled.

When you specify the unit/slot/port values or a lag-id value, the following information displays.

Term Definition
IGMP Snooping Admin Mode Indicates whether IGMP Snooping is active on the interface.
Fast Leave Mode Indicates whether IGMP Snooping Fast-leave is active on the interface.
Group Membership Interval (secs) The amount of time in seconds that a switch will wait for a report from a particular group on a particular interface before deleting the interface from the entry. This value may be configured.
Maximum Response Time (secs) The amount of time the switch waits after it sends a query on an interface because it did not receive a report for a particular group on that interface. This value may be configured.
Multicast Router Expiry Time (secs) The amount of time to wait before removing an interface from the list of interfaces with multicast routers attached. The interface is removed if a query is not received. This value may be configured.
Report Suppression Mode Indicates whether IGMP reports (set by the command set igmp report-suppression) is enabled or not.
Report Flood Mode Indicates whether the IGMP Report Flood Mode is enabled or not.
Exclude Mrouter Interface Mode Indicates whether the Exclude Mrouter Interface Mode is enabled or not.
IGMP-PLUS Indicates whether IGMP Plus is globally enabled or not.

When you specify a value for vlan-id, the following information displays.

Term Definition
VLAN ID The VLAN ID.
IGMP Snooping Admin Mode Indicates whether IGMP Snooping is active on the VLAN.
Fast Leave Mode Indicates whether IGMP Snooping Fast-leave is active on the VLAN.
Group Membership Interval (secs) The amount of time in seconds that a switch will wait for a report from a particular group on a particular interface, which is participating in the VLAN, before deleting the interface from the entry. This value may be configured.
Maximum Response Time (secs) The amount of time the switch waits after it sends a query on an interface, participating in the VLAN, because it did not receive a report for a particular group on that interface. This value may be configured.
Multicast Router Expiry Time (secs) The amount of time to wait before removing an interface that is participating in the VLAN from the list of interfaces with multicast routers attached. The interface is removed if a query is not received. This value may be configured.
Report Suppression Mode Indicates whether IGMP reports (set by the command set igmp report-suppression) is enabled or not.
Report Flood Mode Indicates whether the IGMP Report Flood Mode is enabled or not.
Exclude Mrouter Interface Mode Indicates whether the Exclude Mrouter Interface Mode is enabled or not.
IGMP-PLUS Indicates whether IGMP Plus is enabled for the VLAN or not.

Command example:

CODE
(NETGEAR switch) #show igmpsnooping 1

VLAN ID........................................ 1
IGMP Snooping Admin Mode....................... Enabled
Fast Leave Mode................................ Enabled
Group Membership Interval (secs)............... 600
Max Response Time (secs)....................... 120
Multicast Router Expiry Time (secs)............ 300
Report Suppression Mode........................ Disabled
Report Flood Mode.............................. Enabled
Exclude Mrouter Interface Mode................. Enabled
IGMP-Plus...................................... Enabled

show igmpsnooping fast-leave

M4250

M4350

This command displays the status of IGMP Snooping fast-leave for ports.

Format show igmpsnooping fast-leave
Mode Privileged EXEC
Term Definition
Interface The physical port or LAG for which the IGMP Snooping fast-leave information is displayed.
Fast-Leave Admin Mode Indicates whether IGMP Snooping fast-leave is enabled or disabled on the physical port or LAG.
Fast-Leave Operational Mode Indicates the operational status of IGMP Snooping fast-leave on the physical port or LAG.

Command example:

CODE
(NETGEAR switch) #show igmpsnooping fast-leave

Fast Leave Auto-Assignment Mode................ Enable

Interface      Fast-Leave Admin Mode     Fast-Leave Operational Mode
----------     ----------------------    ----------------------------
1/1/1          Disable                   Disable
1/1/2          Disable                   Disable
1/1/3          Disable                   Disable
1/1/4          Disable                   Disable

show igmpsnooping group

M4250

M4350

This command displays the source and group IP addresses and the corresponding MAC addresses that the switch detected through IGMP Snooping on a VLAN, interface, or LAG.

If you do not specify a specific VLAN, interface, or LAG, the command output displays all detected IGMP Snooping entries on all VLANs, interfaces, and LAGs on the switch. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show igmpsnooping group [vlan-id | unit/slot/port | lag lag-id]
Mode Privileged EXEC
Term Definition
VLAN ID The VLAN ID to which the host forwards IGMP member join requests.
Subscriber The IP address and MAC address of the host.
MC Group The IP address and MAC address of the multicast group.
Interface The interface on which the IGMP member join request is detected.
Type The IGMP version.
Timeout (Sec)

The period in seconds after which the most recent host update expires.

The timer is reset if an IGMP member join request is received for the multicast group.

Command example:

CODE
(NETGEAR switch) #show igmpsnooping group

VLAN ID Subscriber                     MC Group                      Interface Type   Timeout(Sec)
------- ------------------------------ ----------------------------- --------- ----   ------------
1       1.1.1.6/00:00:00:00:00:06      224.1.1.6/01:00:5E:01:01:06   1/0/16    IGMPv2 252
1       1.1.1.8/00:00:00:00:00:08      224.1.1.6/01:00:5E:01:01:06   1/0/18    IGMPv2 256
        1.1.1.9/00:00:00:00:00:09
        1.1.1.10/00:00:00:00:00:0A
        1.1.1.11/00:00:00:00:00:0B
        1.1.1.12/00:00:00:00:00:0C
1       1.1.1.9/00:00:00:00:00:09      224.1.1.7/01:00:5E:01:01:07   1/0/18    IGMPv2 181
1       1.1.1.10/00:00:00:00:00:0A     224.1.1.8/01:00:5E:01:01:08   1/0/18    IGMPv2 182
1       1.1.1.11/00:00:00:00:00:0B     224.1.1.9/01:00:5E:01:01:09   1/0/18    IGMPv2 183
1       1.1.1.12/00:00:00:00:00:0C     224.1.1.10/01:00:5E:01:01:0A  1/0/18    IGMPv2 184

In the command output example, both multicast group IP addresses and interfaces are used:

  • The information on the 1st and 2nd lines is for the same group (224.1.1.6, with different sources) but detected on different interfaces (1/0/16 and 1/0/18) and therefore displayed on two separate lines.
  • The information on the 2nd line is for a single group (224.1.1.6) on interface 1/0/18, but includes subscriptions from different hosts. All the host IP addresses are combined on the same line.
  • The information on the 3rd, 4th, 5th, and 6th lines is for different multicast groups but detected on the same interface. Because the group IP addresses are different, the information is displayed on different lines.

show igmpsnooping mrouter interface

M4250

M4350

This command displays interfaces on which multicast routers are detected. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show igmpsnooping mrouter interface {unit/slot/port | all}
Mode Privileged EXEC
Term Definition
Interface The port for which multicast router information is displayed.
Multicast Router Attached Indicates whether multicast router is statically enabled on the interface.
VLAN ID The list of VLANs of which the interface is a member.

show igmpsnooping mrouter vlan

M4250

M4350

This command displays VLAN interfaces on which multicast routers are detected. To specify an actual interface or port, do the following:

  • For an M4250 series switch, use the argument slot/port.
  • For an M4350 series switch, use the argument unit/slot/port, as shown in the command format.
Format show igmpsnooping mrouter vlan {vlan-id | interface unit/slot/port}
Mode Privileged EXEC
Term Definition
Interface The port on which multicast router information is displayed.
VLAN ID The list of VLANs of which the interface is a member.

show igmpsnooping ssm

M4250

M4350

This command displays information about Source Specific Multicasting (SSM) by entry, group, or statistics. SSM delivers multicast packets to receivers that originated from a source address specified by the receiver. SSM is only available with IGMPv3 and MLDv2.

Format show igmpsnooping ssm {entries | groups | stats}
Mode Privileged EXEC

show mac-address-table igmpsnooping

M4250

M4350

This command displays the IGMP Snooping entries in the MFDB table.

Format show mac-address-table igmpsnooping
Mode Privileged EXEC
Term Definition
VLAN ID The VLAN in which the MAC address is learned.
MAC Address A multicast MAC address for which the switch has forwarding or filtering information. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB.
Type The type of the entry, which is either static (added by the user) or dynamic (added to the table as a result of a learning process or protocol).
Description The text description of this multicast table entry.
Interfaces The list of interfaces that are designated for forwarding (Fwd:) and filtering (Flt:).