UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2012-12-06 03:01 PM

kumar
Member
Registered: 2012-12-06
Posts: 2

Multicast testing in Linux

I have followed below steps to test multicasting in Linux.

1. Connect two PCs running with Linux-FC8 through switch (D-Link).
2. Assign IPs statically to both the PCs, ip(10.10.10.1 and 10.10.10.2)
3. Execute below command in both PCs.
    echo "1" > /proc/sys/net/ipv4/ip_forward
3. As it's advised to use the following ip in range 224.0.0.0 through 239.255.255.255 for Multicasting,
    Execute below commands in both the PCs :
    ip maddr add 239.255.1.0 dev eth0
4. Execute below command in any PC.
    ping 239.255.1.0

But the ping is failing.
Could you please suggest, how to test multicasting in Linux.

Offline

#2 2012-12-06 09:22 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: Multicast testing in Linux

I don't do much with multicast myself, but I don't think that "ip maddr add" you do is necessary...  However, you DO need a proper route entry for the multicast address range...  Something like:

ip route add 224.0.0.0/4 dev eth0

I think...  Then, if you "ping 224.0.0.1", all multicast capable hosts should reply...

Offline

#3 2012-12-07 08:20 AM

kumar
Member
Registered: 2012-12-06
Posts: 2

Re: Multicast testing in Linux

I tried "ip route add 224.0.0.0/4 dev eth0" instead of "ip maddr add 239.255.1.0 dev eth0" and executed "ping 224.0.0.1", but still ping is failing.

I executed tcpdump command "tcpdump -nnq -i eth0" in  in both the PCs (10.10.10.1 and 10.10.10.2).
When "ping 224.0.0.1" was executed in 10.10.10.1 PC, below line appeared in both PCs tcpdump.

   IP 10.10.10.1 > 224.0.0.1 : ICMP echo request, id 64273, seq 7, length 64

Kindly suggest some solution to test multicasting in Linux.

Offline

#4 2012-12-07 02:00 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: Multicast testing in Linux

Offline

Board footer

Powered by FluxBB