Created
May 23, 2023 22:44
-
-
Save suuhm/5e39f4450d7fc54772a075c3fd02c25b to your computer and use it in GitHub Desktop.
Get some Infos and set IGMP Version on Linux Systems with SmcRoute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| IFACE=$1 | |
| #Igmp version | |
| IV=2 | |
| echo "Multicast supported?" | |
| cat /boot/config-$(uname -r) | grep CONFIG_IP_MULTICAST | |
| route add -net 224.0.0.0 netmask 240.0.0.0 dev $IFACE | |
| echo "Set IGMP version" | |
| cat /proc/sys/net/ipv4/conf/eth0/force_igmp_version | |
| echo $IV >/proc/sys/net/ipv4/conf/eth0/force_igmp_version | |
| sysctl net.ipv4.icmp_echo_ignore_broadcasts=0 | |
| #smcroute | |
| # smcroute -d | |
| # smcroute -j eth0 239.0.0.1 | |
| # smcroute -l eth0 239.0.0.1 | |
| # | |
| # ping 239.1.0.10 | |
| echo "Get multicast Group infos" | |
| ip maddr show ;echo | |
| cat /proc/net/igmp | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment