Multiple comma-separated ip-add-membership directives can be specified to subscribe to multiple groups at the same time. If, instead, you want to direct the payload to stdout, change that group and port to be actual group and port that you want to subscribe to. The UDP4-DATAGRAM:239.101.1.68:8889 bit listens for packets on a dummy group and udp port that should not receive any data to prevent socat from also outputting everything to stdout. This will subscribe to group 239.0.1.68 using the interface with address 10.100.201.1. This works nicely for both L2 and 元 subscription: socat STDIO UDP4-DATAGRAM:239.101.1.68:8889,\ One can use socat to subscribe to groups. The device to join/leave this multicast address.Įxample for a wired connection: ip maddr add ff02::fb dev eth0Įxample for a wireless connection: ip maddr add 224.0.0.251 dev wlan0 This command only manages link layer addresses. Note that it is impossible to join protocol multicast groups statically. It attaches/detaches a static link layer multicast address to listen on the interface. You can do this using the ip maddr add command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |