Enabling or disabling IGMP

Prerequisites

You must be in an interface configuration context, as indicated by the switch(config-if)# prompt, switch(config-if-vlan)# prompt, or switch(config-lag-if)# prompt.

For IGMP to be operational, the interface has to be up. To become querier, the interface must have an IP address associated with it.

Procedure
IGMP is disabled by default. Enable IGMP on an interface using the following command.

ip igmp {enable | disable}

For example, the following command enables IGMP on interface VLAN 2:
switch# configure terminal
switch(config)# interface vlan 2
switch(config-if-vlan)# ip igmp enable

And the following command enables IGMP on interface 1/1/1:

switch# configure terminal
switch(config)# interface 1/1/1
switch(config-if)# ip igmp enable

Use the disable parameter to disable IGMP on an interface.