From owner-freebsd-net@FreeBSD.ORG Wed Jul 22 10:47:48 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1005F106564A for ; Wed, 22 Jul 2009 10:47:48 +0000 (UTC) (envelope-from iprebeg@freebsd.org) Received: from maja.zesoi.fer.hr (maja.zesoi.fer.hr [161.53.64.3]) by mx1.freebsd.org (Postfix) with ESMTP id 99BAD8FC1D for ; Wed, 22 Jul 2009 10:47:47 +0000 (UTC) (envelope-from iprebeg@freebsd.org) Received: from localhost (localhost [127.0.0.1]) by maja.zesoi.fer.hr (Postfix) with ESMTP id 6E9FC42F7E; Wed, 22 Jul 2009 12:47:43 +0200 (CEST) Received: from maja.zesoi.fer.hr ([127.0.0.1]) by localhost (maja.zesoi.fer.hr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7U93C2SccaOc; Wed, 22 Jul 2009 12:47:37 +0200 (CEST) Received: from valeria.zesoi.fer.hr (valeria.zesoi.fer.hr [161.53.64.29]) by maja.zesoi.fer.hr (Postfix) with ESMTP id 4ABFD42F7D; Wed, 22 Jul 2009 12:47:18 +0200 (CEST) Date: Wed, 22 Jul 2009 12:40:59 +0200 From: iprebeg@freebsd.org To: Giulio Ferro Message-ID: <20090722104059.GA682@valeria.zesoi.fer.hr> References: <4A66E39A.8000201@zirakzigil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A66E39A.8000201@zirakzigil.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: freebsd-net@freebsd.org Subject: Re: multicast and multiple nics X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2009 10:47:48 -0000 On Wed, Jul 22, 2009 at 12:02:02PM +0200, Giulio Ferro wrote: > This is something that's really been puzzling me lately... > > Freebsd 8 beta amd64 recently updated > > The box has 2 nics: > (internet inteface) > em0 : 192.168.1.1, netmask 255.255.255.0 > > (lan interface) > re0 : 192.168.2.1 netmask 255.255.255.0 (lan interface) > 192.168.2.2 netmask 255.255.255.255 (alias 0) > 192.168.2.3 netmask 255.255.255.255 (alias 1) > > I want to run ushare (/usr/ports/ushare). This program sends > multicast packets to multicast address 239.255.255.250 > > The packets should go to the lan, so I add the route: > route add 224/4 -iface re0 > > In order to do the test I switch off the firewall (/etc/rc.d/pf stop) > > I start the service, but no packets can be seen leaving the interface re0 > with tcpdump. Can you try to sniff with other machine in that lan? > > Even If I ping a multicast address directly I can see no packets at all: > > ping -I 192.168.2.1 239.255.255.250 Please, try to use mcastread like this mcastread -v4 -s 192.168.2.1 re0 239.255.255.250 1337 or mcastsend like this mcastsend -i re0 239.255.255.250 1337 to check is there any mcast traffic. ( IGMP packets generated by mcastread are mcasted to 224.0.0.22 ). There is also quite a bug already mentioned here. Something is preventing proper setting of destionation MAC. It is seen as DMAC stays unicast-like. > > I can't really understand why this doesn't work. I've also tried to enable > multicast routing (mrouted), just defining the interfaces I want to use > in /etc/mrouted.conf, but no luck. I'm not even sure if mrouted should be > needed in this setup, anyway... You don't need mrouted, AFAIK. It is needed only when you want deploy mcast session in WAN. > > Can someone point me what I'm doing wrong? > > Thanks. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"