ip igmp snooping

To enable IGMP snooping system enhanced and sparse mode in the switch and fast leave processing and IGMP snooping for a specific VLAN, configure the snooping filter and proxy reporting, the IGMP general query transmission feature, the time interval (in seconds) after which the switch sends a group specific query, the IGMP snooping router time-out interval (in seconds) after which port is deleted if no IGMP router control packets are received, the multicast VLAN feature related configuration on a port, to specify if IGMP reports should be forwarded on all VLAN member ports or router ports or non-edge ports and set the IGMP snooping report-suppression time interval for which IGMPv2 report messages will not get forwarded to the router, use the command ip igmp snooping in Global Configuration Mode. The no form of the command disables IGMP snooping in the switch (or specific VLAN). When IGMP snooping is disabled globally, it is disabled in all VLAN interfaces.

ip igmp snooping

ip igmp snooping
{ [enhanced-mode } { {enable } { | disable}] }
{ [filter] }
{ [group-query-interval } { <(2-5) seconds>] }
{ [mrouter-time-out } { <(60 – 600) seconds>] }
{ [multicast-vlan } { {enable } { | disable}] }
{ [port-purge-interval } { <(130 - 1225) seconds>] }
{ [proxy] }
{ [proxy-reporting] }
{ [query-forward } { {all-ports } { | non-router-ports}] }
{ [report-forward } { {all-ports } { | router-ports } { | non-edge-ports}] }
{ [report-suppression-interval } { <(1 - 25) seconds>] }
{ [retry-count } { <(1 - 5>] }
{ [send-query } { {enable } { | disable}] }
{ [source-only } { learning } { age-timer } { <short(130-1225)>] }
{ [sparse-mode } { {enable } { | disable}] }
{ [vlan }
{ <vlanid/vfi_id> } { | <vlanid (1-4094)> }
{ {immediate-leave } { | mrouter } { <ifXtype> } { <iface_list>}] }

no ip igmp snooping

no ip igmp snooping
{ [filter] }
{ [group-query-interval] }
{ [mrouter-time-out] }
{ [port-purge-interval] }
{ [proxy] }
{ [proxy-reporting] }
{ [report-forward] }
{ [report-suppression-interval]l }
{ [retry-count] }
{ [source-only } { learning } { age-timer] }
{ [vlan } { <vlanid/vfi_id> } { | <vlanid (1-4094)>] }
{ {immediate-leave } { | mrouter } { <ifXtype> } { <iface_list>}] }

Parameters

Parameter Type Description
enhanced-mode   Enter to configure the snooping system enhanced mode in the switch. It is provided to enhance the operation of IGMP snooping module to duplicate multicast traffic by learning multicast group entries based on the port and inner VLAN. This mode of operation is applied when the downstream devices are less intelligent or not capable of duplicating multicast traffic.
enable   Enter to enable snooping system enhanced mode in the switch.
Note:

Enhanced mode is in enabled state only when the snooping mode is set as IP Based.

disable   Enter to disable snooping system enhanced mode in the switch. This is default.
filter   Enter to configure the IGMP snooping filter. The IGS filtering feature restricts channel registration from being added to the database. In transparent snooping, the filtered packet will not be added to the snooping database but will be forwarded upstream. When disabled, all filter related configurations remain but the incoming reports will not be subject to filtering. IGS module programs the hardware to remove the configured rate limit. It flushes all registrations learnt through a port if a threshold limit is configured for this interface.
group-query-interval   Enter to set the time interval (in seconds) after which the switch sends a group specific query to find out if there are any interested receivers in the group when it receives a leave message. If it does not receive a response from the group, the port is removed from the group membership information in the forwarding database.
<(2-5) seconds> Integer Enter a value to set the time interval (in seconds). It ranges from 2 to 5. The default is 2 seconds.
mrouter-time-out   Enter to set the IGMP snooping router time-out interval (in seconds) after which port is deleted if no IGMP router control packets are received
<(60 – 600) seconds> Integer Enter a value to set the IGMP snooping router time-out interval (in seconds). It ranges from 2 to 5.
multicast-vlan   Enter to configure the snooping system enhanced mode in the switch. It is provided to enhance the operation of IGMP snooping module to duplicate multicast traffic by learning multicast group entries based on the port and inner VLAN. This mode of operation is applied when the downstream devices are less intelligent or not capable of duplicating multicast traffic.
enable   Enter to enable snooping system enhanced mode in the switch.
disable   Enter to disable snooping system enhanced mode. This is the default.
port-purge-interval   Enter to set the time interval (in seconds) after which the switch sends a group specific query to find out if there are any interested receivers in the group when it receives a leave message. If it does not receive a response from the group, the port is removed from the group membership information in the forwarding database.
<(130 - 1225) seconds> Integer Enter a value to set the time interval (in seconds). It ranges from 2 to 5. The default is 260 seconds.
proxy   Enter to configure proxy reporting in the IGMP snooping switch. In proxy mode, the switch acts as a querier for all downstream interfaces and as a host for all upstream interfaces. The switch sends general query to all downstream interfaces at the query interval and collects information about the member ports. The proxy sends current consolidated report and state change report to upstream interfaces. By default, the proxy is disabled in the IGMP snooping switch.
Note:

Proxy can be enabled in the IGMP snooping switch only if the proxy reporting is disabled in the snooping switch.

proxy-reporting   Enter to configure proxy reporting in the IGMP snooping switch. When enabled, the switch supports the multicast router to learn the membership information of the multicast group. It forwards the multicast packets based on group membership information. The proxy-reporting switch acts as a querier to the downstream hosts. It sends proxy-reporting to upstream queriers. By default, proxy-reporting is enabled.
Note:

Proxy reporting can be enabled in the IGMP snooping switch only if the proxy is disabled in the switch.

query-forward   Enter to configure the snooping system enhanced mode in the switch. It is provided to enhance the operation of IGMP snooping module to duplicate multicast traffic by learning multicast group entries based on the port and inner VLAN. This mode of operation is applied when the downstream devices are less intelligent or not capable of duplicating multicast traffic.
all-ports   Enter to configure the query messages to be sent to all member ports of VLAN. the IGMP query forward administrative control status as all VLAN member ports. This is done to find out if there are any interested listeners in the network.
non-router-ports   Enter to configure the query messages to be sent only to non-router ports. This is done to reduce the traffic in the network. This is default.
report-forward   Enter to specify if IGMP reports should be forwarded on all VLAN member ports or router ports or non-edge ports. The configuration enables the switch to forward IGMP report messages to the selected ports thus avoiding flooding of the network.
all-ports   Enter to configure the IGMP reports to be forwarded to all ports of a VLAN.
router-ports   Enter to configure the IGMP reports to be forwarded only to router ports of a VLAN. This is the default.
non-edge-ports   Enter to configure the IGMP reports to be forwarded only to router ports of a VLAN.
non-router-ports   Enter to configure the IGMP reports to be forwarded only to STP non-edge ports of a VLAN.
report-suppression-interval   Enter to set the IGMP snooping report-suppression time interval for which IGMPv2 report messages will not get forwarded to the router ports for the same group. The switch forwards IGMPv2 report messages to a multicast group. A timer is started immediately after forwarding the report message and runs for set period of time. During this interval, the switch does not forward another IGMPv2 report message addressed to the same multicast group to the router ports.
Note:

The ip igmp snooping report-suppression-interval is used only when the proxy and proxy-reporting are disabled.

<(1 – 25) seconds> Integer Enter a value to set the time interval (in seconds). It ranges from 2 to 5. The default is 5 seconds.
retry-count   Enter to set the maximum number of group specific queries sent on a port on reception of a IGMPv2 leave message. This command sets the maximum number of group specific queries sent by the switch to check if there are any interested v2 receivers for the group when it receives a leave message in the proxy/ proxy-reporting mode. The port is deleted from the group membership information in the forwarding database if the maximum retry count exceeds set number.
<1 - 5> Integer Enter a value to set he maximum number of group specific queries sent on a port on reception of a IGMPv2 leave message. It ranges from 1 to 5.
send-query   Enter to configure the IGMP general query transmission feature upon topology change in the switch.
enable   Enter to enable the snooping query transmission status which generates IGMP query messages
disable   Enter to disable the snooping query transmission status which stops the switch from generating IGMP query messages
source-only   Enter to configure the IGMP snooping port purge time interval after which the port gets deleted if IGMP reports are not received. When a port receives reports from hosts, the timer is initiated. If the port receives another report before the timer expires, the timer is restarted. If the port does not receive any report from hosts till the timer expires, then the port entry is purged from the multicast database.
learning   Enter to set learning age timer configuration.
age-timer   Enter to set interval (in seconds) after which port is deleted if no IGMP reports are received.
<short(130-1225)> Integer Enter a value for the interval (in seconds) after which a port is deleted if no IGMP reports are received. The default is 260 seconds.
sparse-mode   Enter to configure the snooping system sparse mode in the switch. In the sparse mode, the IGS module drops the unknown multicast traffic when there is no listener for the multicast data. In the non-sparse-mode, the IGS module forwards the unknown multicast traffic. The multicast data gets flooded to the member port of vlan.
Note: Sparse mode is in enabled state only when the snooping mode is set as MAC Based.
enable   Enter to enable the snooping system sparse mode in the switch. It drops unknown multicast packets.
disable   Enter to disable the snooping system sparse mode in the switch. Floods unknown multicast packets. This is default.
vlan <vlanid (1-4094)>   Enter to enable fast leave processing and IGMP snooping for a specific VLAN. It enables IGMP snooping only for the specific VLAN when IGMP snooping is globally disabled. When the fast leave feature is enabled, port information is removed from a multicast group entry immediately after fast leave message is received. The ID of the VLAN ranges between 1 and 4094.
immediate-leave   Enter to set fast leave processing configuration. By default, fast leave processing is disabled in all VLANs.
mrouter   Enter to enable IGMP snooping and configures a list of multicast router ports for a specific VLAN, if IGMP snooping is globally enabled. This will enable IGMP snooping only for the specific VLAN, if IGMP snooping is globally disabled. Any IGMP message received on a switch is forwarded only on the router-ports and not on host ports. In this manner, the IGMP snooping functionality avoids flooding of IGMP query messages from the host to the entire network.
<ifXtype>   Enter to configure the list of multicast router ports for the specified type of interface. The interface can be:
  • fastethernet – Officially referred to as 100BASE-T standard. This is a version of LAN standard architecture that supports data transfer up to 100 megabits per second.
  • gigabitethernet – A version of LAN standard architecture that supports data transfer up to 1 gigabit per second.extreme-ethernet – A version of Ethernet that supports data transfer up to 10 gigabits per second. This Ethernet supports only full duplex links.
<iface_list>   Enter to set a list of multicast router ports for the list of interfaces or a specific interface identifier. This value is a combination of slot number and port number separated by a slash for interface type other than internal-lan and port-channel. Only i-lan or port-channel ID is provided for interface types internal-lan and port-channel. Use comma as a separator without space while configuring list of interfaces. Example: 0/1, 0/3 or 1, 3

Mode

Global Configuration Mode

Examples

iS5Comm(config)# ip igmp snooping enhanced-mode enable

iS5Comm(config)# ip igmp snooping filter

iS5Comm(config)# ip igmp snooping group-query-interval 3

iS5Comm(config)#ip igmp snooping mrouter-time-out 70

iS5Comm(config)# ip igmp snooping multicast-vlan enable

iS5Comm (config)# ip igmp snooping port-purge-interval 150

iS5Comm(config)# ip igmp snooping report-suppression-interval 20

iS5Comm(config)# ip igmp snooping query-forward all-ports

iS5Comm(config)# ip igmp snooping report-forward all-ports

iS5Comm(config)# ip igmp snooping report-suppression-interval 20

iS5Comm (config)# ip igmp snooping retry-count 4

iS5Comm(config)# ip igmp snooping send-query enable

iS5Comm (config)# ip igmp snooping source-only learning age-timer 200

iS5Comm(config)# ip igmp snooping sparse-mode enable

iS5Comm (config)# ip igmp snooping vlan 1 immediate-leave

iS5Comm(config)# ip igmp snooping vlan 1 mrouter gigabitethernet 0/1