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
[email protected]: cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version0
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.
[email protected]: 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.
[email protected]: cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version2
In order to check whether it is working or not, issue the command below while there is enough traffic.
[email protected][email protected]: tcpdump -i eth0 igmp