Configuring IGMP snooping per port filtering

Configure IGMP snooping traffic handling by specifying auto, blocked, or forward for a port, list of ports or range of ports. In auto mode traffic flow is controlled by the IGMP joins/leaves. Auto mode is the default. In blocked mode, joins and traffic are always blocked on this port. In forward mode traffic is always forwarded on this port, irrespective of joins.

Prerequisites

You must be in the VLAN configuration context, as indicated by the switch(config-vlan)# prompt.

Procedure
Configure IGMP snooping traffic handling for ports on a VLAN using the following commands.
  • Configure the specified ports in auto mode using the following command: ip igmp snooping auto <PORT-LIST>.

  • Configure the specified ports in blocked mode using the following command: ip igmp snooping blocked <PORT-LIST>.

  • Configure the specified ports in forward mode using the following command: ip igmp snooping forward <PORT-LIST>.

For example, the following command configures ports 1/1/1, 1/1/2, 1/1/3 in auto mode for VLAN 2:
switch# configure terminal
switch(config)# vlan 2
switch(config-vlan)# ip igmp snooping auto 1/1/1,1/1/2-1/1/3