In this article, we will see how to force the IGMP version in linux environement.

Use the following command to check the current version of IGMP

<a rel="noreferrer noopener" href="mailto:root@root" target="_blank">root@root</a>: cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version
 0

In the above, we can see the current IGMP version is 0 which is the default one.

For eth0, it is recommended to use IGMP version 2. So, we need to change the IGMP version from 0 to 2.

To do that, use the following command.

<a rel="noreferrer noopener" href="mailto:root@root" target="_blank">root@root</a>: echo "2" > /proc/sys/net/ipv4/conf/eth0/force_igmp_version

Note: If needed, change eth0 to ethX in the above command.

Use the command below to verify the version.

<a rel="noreferrer noopener" href="mailto:root@root" target="_blank">root@root</a>: cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version
 2

In order to check whether it is working or not, issue the command below while there is enough traffic.

<code><a rel="noreferrer noopener" href="mailto:root@root" target="_blank">root@root</a>root@root: tcpdump -i eth0 igmp

Categorized in:

Tagged in: