IGMP snooping commands

Use these M4500 CLI commands to enable IGMP snooping globally, per interface, or per VLAN, and configure fast-leave, timers, and multicast router ports.

This section describes the commands which are used to configure IGMP Snooping.

IGMP snooping is designed to prevent flooding multicast traffic which can cause unnecessary load on host devices.

Note: IGMP Snooping can be enabled with MLAG. The configuration of IGMP Snooping on peers of MLAG must be the same to guarantee that MLAG can work correctly.

ip igmp snooping

Use this command to enable IGMP snooping globally.

Default Disable
Format ip igmp snooping
Mode Global Config

no ip igmp snooping

Use this command to disable IGMP snooping globally.

Format no ip igmp snooping
Mode Global Config

ip igmp snooping querier

Use this command to enable the IGMP snooping querier globally.

Default Disable
Format ip igmp snooping querier ip-order [global | vlan-routing | vlan-querier]
Mode Global Config

no ip igmp snooping querier

Use this command to disable the IGMP snooping querier globally.

Format no ip igmp snooping querier ip-order [global | vlan-routing | vlan-querier]
Mode Global Config

clear igmp snooping

Use this command to delete all dynamic entries in Multicast Forwarding Database which is managed by the IGMP Snooping.

Default None
Format clear igmp snooping
Mode Privileged Exec

ip igmp snooping interfacemode

Use this command to enable IGMP snooping on one particular interface.

Default Disable
Format ip igmp snooping interfacemode
Mode Interface Config

no ip igmp snooping interfacemode

Use this command to disable IGMP snooping on one particular interface.

Format no ip igmp snooping interfacemode
Mode Interface Config

ip igmp snooping interfacemode all

Use this command to enable IGMP snooping on all interfaces.

Default Disable
Format ip igmp snooping interfacemode all
Mode Global Config

no ip igmp snooping interfacemode all

Use this command to disable IGMP snooping on all interfaces.

Format no ip igmp snooping interfacemode all
Mode Global Config

ip igmp snooping fast-leave

Use this command to enable IGMP snooping fast-leave admin mode on one particular interface or all interfaces.

Default Disable
Format ip igmp snooping fast-leave
Mode

Global Config

Interface Config

no ip igmp snooping fast-leave

Use this command to disable IGMP snooping fast-leave admin mode on one particular interface or all interfaces.

Format no ip igmp snooping fast-leave
Mode

Global Config

Interface Config

ip igmp snooping groupmembershipinterval

Use this command to configure IGMP Group Membership Interval time on one particular interface or all interfaces.

Default 600 seconds
Format ip igmp snooping groupmembershipinterval <2-3600>
Mode

Global Config

Interface Config

no ip igmp snooping groupmembershipinterval

Use this command to restore IGMP Group Membership Interval time to default value.

Format no ip igmp snooping groupmembershipinterval
Mode

Global Config

Interface Config

ip igmp snooping mcrtrexpiretime

Use this command to configure Multicast Router Present Expiration time globally or on one particular interface.

Default 300 seconds
Format ip igmp snooping mcrtrexpiretime <0-3600>
Mode

Global Config

Interface Config

no ip igmp snooping mcrtrexpiretime

Use this command to restore Multicast Router Present Expiration time to default value.

Format no ip igmp snooping mcrtrexpiretime
Mode

Global Config

Interface Config

ip igmp snooping mrouter

Use this command to configure one particular interface as a multicast router-attached interface or configure the VLAN ID for the VLAN that has the multicast router attached mode enabled.

Default Disable
Format ip igmp snooping mrouter {interface | <vlan-id>}
Mode Interface Config

no ip igmp snooping mrouter

Use this command to disable multicast router attached mode for one particular interface or a VLAN.

Format no ip igmp snooping mrouter {interface | <vlan-id>}
Mode Interface Config
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set igmp

Use this command to enable IGMP Snooping on a particular VLAN.

Default Disable
Format set igmp <vlan-id>
Mode VLAN database

no set igmp

Use this command to disable IGMP Snooping on a particular VLAN.

Format no set igmp <vlan-id>
Mode VLAN database
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set igmp fast-leave

Use this command to enable IGMP Snooping fast-leave admin mode on a particular VLAN.

Default Disable
Format set igmp fast-leave <vlan-id>
Mode VLAN database

no set igmp fast-leave

Use this command to disable IGMP Snooping fast-leave admin mode on a particular VLAN.

Format no set igmp fast-leave <vlan-id>
Mode VLAN database
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set igmp groupmembership-interval

Use this command to configure IGMP Group Membership Interval time on a particular VLAN.

Default 600 seconds
Format set igmp groupmembership-interval <vlan-id> <2-3600>
Mode VLAN database

no set igmp groupmembership-interval

Use this command to restore IGMP Group Membership Interval time on a particular VLAN to default value.

Format no set igmp groupmembership-interval <vlan-id>
Mode VLAN database
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set igmp maxresponse

Use this command to configure IGMP Maximum Response time on a particular VLAN when the igmp-plus command is not enabled.

Default 120
Format set igmp maxresponse <vlan-id> <1-300>
Mode VLAN database

no set igmp maxresponse

Use this command to restore IGMP Maximum Response time on a particular VLAN to default value.

Format no set igmp maxresponse <vlan-id>
Mode VLAN database
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set igmp mcrtrexpiretime

Use this command to configure Multicast Router Present Expiration time on a particular VLAN.

Default 300
Format set igmp mcrtrexpiretime <vlan-id> <0-3600>
Mode VLAN database

no set igmp mcrtrexpiretime

Use this command to restore Multicast Router Present Expiration time on a particular VLAN to default value.

Format no set igmp mcrtrexpiretime <vlan-id>
Mode VLAN database
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set igmp report-suppression

Use this command to enable Report Suppression one a particular VLAN.

Default Disable
Format set igmp report-suppression <vlan-id>
Mode VLAN database

no set igmp report-suppression

Use this command to disable Report Suppression on a particular VLAN.

Format no set igmp report-suppression <vlan-id>
Mode VLAN database
Parameter Description
<vlan-id> The VLAN ID. (Range: 1-4093)

set snoop-vlan-block

Use this command to enable Snooping Vlan Block mode for a list of VLAN.

Default None
Format set snoop-vlan-block <vlan-list>
Mode VLAN database

no set snoop-vlan-block

Use this command to disable Snooping Vlan Block mode for a list of VLAN.

Format no set snoop-vlan-block <vlan-list>
Mode VLAN database
Parameter Description
vlan-list The VLANs which apply this command.

ip igmp snooping static

Use this command to add an interface to a multicast group.

Default None
Format ip igmp snooping static <macaddr> vlan <vlan-id> [interface {<slot/port> | port-channel <portchannel-id>}]
Mode Global Config

no ip igmp snooping static

Use this command to remove an interface from a multicast group.

Format no ip igmp snooping static <macaddr> vlan <vlan-id> interface {<slot/port> | port-channel <portchannel-id>}
Mode Global Config
Parameter Description
vlan-id The VLAN ID. (Range: 1-4093)
macaddr Multicast Group MAC address
slot/port Interface number
portchannel-id Port-channel interface number. The range of port-channel ID is 1 to 64.

ip igmp snooping router-alert-check

Use this command to enable Router-Alert validation for IGMP packets.

Default Disable
Format ip igmp snooping router-alert-check
Mode Global Config

no ip igmp snooping router-alert-check

Use this command to disable Router-Alert validation for IGMP packets.

Format no ip igmp snooping router-alert-check
Mode Global Config

show ip igmp snooping

Use this command to display IGMP snooping information.

Format show ip igmp snooping [interface {<slot/port> | vlan <vlan-id> | port-channel <portchannel-id>}]
Mode Privilege Exec
Parameter Description
vlan-id The VLAN ID. (Range: 1-4093)
slot/port portchannel-id Interface number Port-channel interface number. The range of port-channel ID is 1 to 64.

Display Message

If no parameters are specified, this command displays the following information:

Term Definition
Admin Mode Indicates whether or not IGMP Snooping is enabled on the switch.
Operation Mode Indicates whether or not IGMP Snooping is active on the switch.
Multicast Control Frame Count Displays the number of IGMP Control frames that are processed by the CPU.
IGMP Snooping Router-Alert check Indicates whether or not Router-Alert Validation is active on the switch.
Interfaces Enabled for IGMP Snooping Interfaces on which IGMP Snooping is enabled.
VLANs enabled for IGMP snooping VLANs on which IGMP Snooping is enabled.
VLANs Block enabled for snooping VLANs on which IGMP Snooping is disabled.

If parameter <slot/port> or <portchannel-id> is specified, the following information is displayed:

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 Shows 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 on the interface, before deleting the interface from the entry. This value may be configured.
Max Response Time Shows the amount of time in seconds that a switch will wait after receiving an IGMP Leave Packet.
Multicast Router Expiry Time Displays the amount of time to wait before removing an interface that is participating on the 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.

If parameter <vlan-id> is specified, the following information appears:

Term Definition
VLAN ID 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.
Flood IGMP Report and Leave PDU Indicates whether IGMP report and leave PDUs are flooded on the VLAN.
Group Membership Interval Shows 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.
Max Response Time Shows the amount of time in seconds that a switch will wait after receiving an IGMP Leave Packet.
Multicast Router Block Mode Indicates whether the Multicast Router Block mode is enabled or disabled on the VLAN.
Multicast Router Expiry Time Displays 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 Indicate whether Report Suppression mode is active on the VLAN.
Vlan Block Mode Indicate whether Vlan Block Mode is active on the VLAN.

show ip igmp snooping mrouter interface

Use this command to display information about dynamically learned or statically configured multicast router-attached interfaces.

Format show ip igmp snooping mrouter interface {<slot/port> | port-channel <portchannel-id>}
Mode Privilege Exec
Parameter Description
slot/port portchannel-id Interface number Port-channel interface number. The range of port-channel ID is 1 to 64.

Display Message

Term Definition
Interface Shows the interface on which multicast router information is being displayed.
Multicast Router Attached Indicates whether multicast router is statically enabled on the interface.

show ip igmp snooping mrouter vlan

Use this command to display information about dynamically learned or statically configured multicast router-attached VLAN interfaces.

Format show ip igmp snooping mrouter vlan {<slot/port> | port-channel <portchannel-id>}
Mode Privilege Exec
Parameter Description
slot/port portchannel-id Interface number Port-channel interface number. The range of port-channel ID is 1 to 64.

Display Message

Term Definition
Interface Shows the interface on which multicast router information is being displayed.
VLAN ID Displays the list of VLANs of which the interface is a member.

show ip igmp snooping static

Use this command to display IGMP snooping static information.

Format show ip igmp snooping static
Mode Privilege Exec

Display Message

Term Definition
VLAN The VLAN ID used with the MAC address to fully identify the L2Mcast Group packets
MAC Address The MAC address of the L2Mcast Group in the format 01:00:5e:xx:xx:xx.
Port List the ports you want included into L2Mcast Group.
State The active interface number belongs to this Multicast Group.

show mac-address-table igmpsnooping

Use this command to display the IGMP Snooping entries in the Multicast Forwarding Database (MFDB) table.

Format show mac-address-table igmpsnooping
Mode Privilege Exec

Display Message

Term Definition
VLAN ID The VLAN ID used with the MAC address to fully identify the L2Mcast Group packets
MAC Address A multicast MAC address for which the switch has forwarding or filtering interfaces. The format is 01:00:5e:xx:xx:xx.
Type The type of 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:).

show ip igmp snooping ssm entries

Use this command to display IGMP source specific multicast forwarding database.

Format show ip igmp snooping ssm entries
Mode Privilege Exec

Display Message

Term Definition
VLAN ID VLAN ID
Group Multicast Group IP address
Source IP Source IP address
Source Filter Mode Source filter mode (Include or Exclude) for the specified group on the specified interface and VLAN
Interfaces The list of interfaces which are included or excluded for specified group, VLAN and source address.

show ip igmp snooping ssm groups

Use this command to display IGMP SSM group membership information.

Format show ip igmp snooping ssm groups
Mode Privilege Exec

Display Message

Term Definition
VLAN ID VLAN ID
Group Multicast Group IP address
Interface Interface which is included or excluded for specified group, VLAN and source address.
Reporter IP Address of the source of last membership report received for the specified group address on the specified interface and VLAN
Source Filter Mode Source filter mode (Include or Exclude) for the specified group on the specified interface and VLAN
Source Address List Source List Entry for the specified group address, interface and VLAN

show ip igmp snooping ssm stats

Use this command to display statistics of IGMP snooping SSMFDB.

Format show ip igmp snooping ssm stats
Mode Privilege Exec

Display Message

Term Definition
Total Entries Maximum number of entries that the SSM MFDB table can hold for IGMP snooping.
Most SSM FDB Entries Ever Used Most number of entries ever used in the IGMP snooping SSM MFDB table.
Current Entries Current number of entries in the IGMP snooping SSM MFDB table.

ip igmp snooping maxresponse

Use this command to configure the IGMP Maximum Response time on a particular interface when the igmp-plus command is not enabled. The range is 1 to 300 seconds.

Default 120
Format ip igmp snooping maxresponse <1-300>
Mode Interface Config

no ip igmp snooping maxresponse

Use this command to restore the IGMP Maximum Response time on a particular interface to default value.

Format no ip igmp snooping maxresponse
Mode Interface Config