I'm using tcpdump to capture multicast packets and had to code up a custom program to join multicast feeds so tcpdump will "see" the packets. Just wondering if netcat or any other applications can perform this function instead?

link|improve this question

25% accept rate
feedback

1 Answer

up vote 1 down vote accepted

You can do this using the ip maddr add command.


SYNTAX

ip maddr [ add | del ] MULTIADDR dev STRING 

DESCRIPTION

It attaches/detaches a static link layer multicast address to listen on the interface. Note that it is impossible to join protocol multicast groups statically. This command only manages link layer addresses.

address LLADDRESS (default)
    the link layer multicast address. 
dev NAME
    the device to join/leave this multicast address. 

EXAMPLES

Example for a wired connection:

ip maddr add ff02::fb dev eth0

Example for a wireless connection:

ip maddr add 224.0.0.251 dev wlan0
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.