,--- response3 writes:
| Hi all,
| I am trying to configure a simple linux host in order to test
| multicast on my network. What I would like to do is be able to have
| the host join a specific multicast group via IGMP and be able to
| respond to ICMP Echo messages sent to that multicast group. Does
| anyone know a way to do this? Thanks.
Install and run avahi[1], a mDNS[1] stack. The daemon will join IPv4
multicast group 224.0.0.251 . Now, try pinging IPv4 address,
224.0.0.251, you'll get response from your box and from other boxes on
your network.
In Linux, in order to receive broadcast and multicast pings, your
probably need to set sysctl 'net.ipv4.icmp_echo_ignore_broadcasts' to
0 .
# sysctl net.ipv4.icmp_echo_ignore_broadcasts=0
For IPv6, no need to install Avahi to test multicast, simply 'ping6'
'ff02::1' (all-hosts) multicast address.
---->8---->8----
abbe [~] chatteau $ ping6 ff02::1%eth2
PING ff02::1%eth2(ff02::1) 56 data bytes
64 bytes from fe80::208:5cff:fe5b:f413: icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from fe80::208:5cff:fe5b:f413: icmp_seq=2 ttl=64 time=0.041 ms
64 bytes from fe80::208:5cff:fe5b:f413: icmp_seq=3 ttl=64 time=0.042 ms
--- ff02::1%eth2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.033/0.038/0.042/0.008 ms
----8<----8<----
References
[1] -
http://www.avahi.org/
[2] -
http://en.wikipedia.org/wiki/Zeroconf
| Brian
HTH
--
Ashish Shukla आशीष शुक्ल
http://wahjava.wordpress.com/
·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --