Networking Forums

Networking Forums > Computer Networking > Linux Networking > Multicast and Gateway

Reply
Thread Tools Display Modes

Multicast and Gateway

 
 
FLY135
Guest
Posts: n/a

 
      09-22-2005, 02:29 PM
I'm writing an application on Linux that sends UDP multicast packets.
My application fails to send the packets, and it cannot join a
multicast group if a default gateway is not set up. This makes no
sense as multicast doesn't even use gateway addressing. Does anyone
have any idea what might be the problem?

 
Reply With Quote
 
 
 
 
Chris Willing
Guest
Posts: n/a

 
      09-25-2005, 12:17 AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 22 Sep 2005 07:29:46 -0700, FLY135 <(E-Mail Removed)> wrote:
> I'm writing an application on Linux that sends UDP multicast packets.
> My application fails to send the packets, and it cannot join a
> multicast group if a default gateway is not set up. This makes no
> sense as multicast doesn't even use gateway addressing. Does anyone
> have any idea what might be the problem?
>


When your application tries to open/write/receive to/from a multicast
address, IGMP sends out "join" requests. These requests have to go
somewhere - your default route is the obvious place for IGMP to send
these requests. If you have no default route, then you could set up
a dummy ethernet device at, say, eth0:0, after which you could use the
route command to send multicast traffic to the dummy device e.g.
route add -net 224.0.0.0 netmask 240.0.0.0 deev eth0:0
(thats from the 'man route')

chris


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDNeuoEi1IpCjOY3ERAhKmAJ4waGJFFf0RAIgvCfPniF GItyn4kgCgq8l8
6EBWTPIXfGUje0nFHqnZ9m0=
=JfKF
-----END PGP SIGNATURE-----
 
Reply With Quote
 
FLY135
Guest
Posts: n/a

 
      09-26-2005, 02:18 PM

Chris Willing wrote:
> When your application tries to open/write/receive to/from a multicast
> address, IGMP sends out "join" requests. These requests have to go
> somewhere - your default route is the obvious place for IGMP to send
> these requests. If you have no default route, then you could set up
> a dummy ethernet device at, say, eth0:0, after which you could use the
> route command to send multicast traffic to the dummy device e.g.
> route add -net 224.0.0.0 netmask 240.0.0.0 deev eth0:0
> (thats from the 'man route')


Thanks Chris... After a bit of searching on the web I did find the
route command you described and that was the solution to the problem.
Athough I was able to use "dev eth0" instead of "dev eth0:0".

The reason why I was confused is that IGMP join requests are sent out
multicast, and multicast MAC addresses are constructed from a formula,
not the MAC address of any particular destination. So IGMP requests
are not sent anywhere in particular. In fact, I found that I could
assign a default gateway that didn't exist on the network and multicast
would work properly.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Microsoft's RRAS be configured for multicast? Such as in cases where you want to make it a multicast rendevous point? Spin Windows Networking 0 10-26-2006 01:06 PM
RIP Multicast Dr Teeth Broadband 7 09-14-2006 02:02 PM
gateway to gateway vpn clients can connect Nick Windows Networking 4 11-11-2004 10:01 PM
Multicast Catalin Porancea Windows Networking 1 11-18-2003 05:20 PM
Windows98 Gateway will not accept static gateway Steve Windows Networking 2 09-21-2003 05:45 AM



1 2 3 4 5 6 7 8 9 10 11