Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 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
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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