要查看是否加入組播,可以使用netstat命令或ip命令。
netstat
ip
使用netstat命令:
netstat -g
這將顯示當前系統中所有的組播組,以及加入每個組的接口。
使用ip命令:
ip -s maddr show
無論使用哪個命令,都需要以root權限運行。