1821539 Members
2136 Online
109633 Solutions
New Discussion юеВ

ping multicast

 
Marcelo De Florio_1
Frequent Advisor

ping multicast

command:
ping -i 238.0.0.1 s2500d

response:
ping: cannot set multicast source interface: Can't assign requested address

any ideas ?

MDF

Marcelo De Florio
4 REPLIES 4
Uday_S_Ankolekar
Honored Contributor

Re: ping multicast

First of all, execute the following command to verify whether or not the
interface is capable of multicasting:

ifconfig lan0

You should see this information in the first line of response:

lan0: flags=843[UP,BROADCAST,RUNNING,MULTICAST]

This entry indicates that the interface is up and running, and capable
of sending broadcast and multicast packets.

One of the basics of multicasting is that there must be a route to
reach the network. If you do not have a default route
to the network, you can use the following command to add a
a default route:

/usr/sbin/route add net (IP ADDRESS ) [ip address of interface to do
multicasting]

-USA..
Good Luck..
Helen French
Honored Contributor

Re: ping multicast

Marcelo De Florio_1
Frequent Advisor

Re: ping multicast

i execute the folowing command:

#
# ifconfig lan0
lan0: flags=843
inet 192.168.2.210 netmask ffffff00 broadcast 192.168.2.255
# /usr/sbin/route add net 238.0.0.1 1
add net 238.0.0.1: gateway 1: Network is unreachable
you have mail in /var/mail/root
# netstat -rn
Routing tables
Dest/Netmask Gateway Flags Refs Use Interface Pmtu
127.0.0.1 127.0.0.1 UH 0 907332 lo0 4136
192.168.2.226 192.168.2.226 UH 0 2901267 lan0:1 4136
192.168.13.210 192.168.13.210 UH 0 0 lan5 4136
192.168.2.210 192.168.2.210 UH 0 3318591 lan0 4136
192.168.2.0 192.168.2.210 U 3 0 lan0 1500
192.168.2.0 192.168.2.226 U 3 0 lan0:1 1500
192.168.13.0 192.168.13.210 U 2 0 lan5 1500
127.0.0.0 127.0.0.1 U 0 0 lo0 4136
default 192.168.2.1 UG 0 0 lan0 150
Marcelo De Florio
Mark Fenton
Esteemed Contributor

Re: ping multicast

you need to give not only the address that you are routing to, but the address of the interface from which you will route --

route add net 238.0.0.1

check out the man page for the route command.

hth
mark