Specifying the IGMP version
The version can be either 2 (IGMPv2) or 3 (IGMPv3). The default is 3. IGMPv2 supports filtering based on groups. IGMPv3 is more advanced and includes filtering based on source and groups.
If using the
strict
option, packets that do not match the configured version will be dropped.
Prerequisites
You must be in the interface configuration context, as indicated by the
switch(config-if)#
prompt,
switch(config-if-vlan)#
prompt, or
switch(config-lag-if)#
prompt.
Procedure
Specify the IGMP version for an interface using one of the following commands.
ip igmp version
<VERSION>
ip igmp version
<VERSION> strict
For example, the following command sets the IGMP version to 2 on interface VLAN 2:
switch# configure terminal switch(config)# interface vlan 2 switch(config-if-vlan)# ip igmp version 2
And the following command sets IGMP strict version to 2 on interface 1/1/1:
switch# configure terminal switch(config)# interface 1/1/1 switch(config-if)# ip igmp version 2 strict switch(config-if)# no ip igmp version 2 strict