加入/离开组播组
Linux
命令
- 加入组播组:
ip addr add 239.255.255.251/32 dev ens160 autojoin
- 离开组播组:
ip addr del 239.255.255.251/32 dev ens160
- 参考:Creating multicast join for tcpdump captures
查看已加入的组播组
Windows
netsh interface ipv4 show joins
Linux
netstat
netstat -gan
ip
ip -h -o -4 maddr show
-h: output statistics with human readable values followed by suffix.
-o: output each record on a single line, replacing line feeds with the ‘’ character. This is convenient when you want to count records with wc(1) or to grep(1) the output.
-4: shortcut for -family inet.
maddr: multicast address.