1、检查Linux系统是否接收到组播数据
使用tcpdump工具,检查源或者目的地址239.1.1.1:9001的数据包
tcpdump -i ens33 host 239.1.1.1 port 9001

2、关闭防火墙
暂时关闭:
systemctl stop firewalld
service iptables stop
永久关闭:
systemctl disable firewalld
chkconfig iptables off

3、修改/etc/sysctl.conf 文件中的 net.ipv4.conf.all.rp_filter 设置成0
sysctl -w net.ipv4.conf.all.rp_filter=0
echo “0”>/proc/sys/net/ipv4/conf/all/rp_filter

4、添加组播地址路由:
route add -net 239.1.1.1 netmask 255.255.255.255 dev ens33

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐