From owner-freebsd-net@FreeBSD.ORG Wed Jul 22 10:17:20 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 8F84A106564A for ; Wed, 22 Jul 2009 10:17:20 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from mail.giulioferro.it (mail.giulioferro.it [85.18.102.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4C66E8FC1F for ; Wed, 22 Jul 2009 10:17:19 +0000 (UTC) (envelope-from auryn@zirakzigil.org) Received: from localhost (localhost [127.0.0.1]) by mail.giulioferro.it (Postfix) with ESMTP id 1E26333D0B for ; Wed, 22 Jul 2009 12:05:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at giulioferro.it Received: from mail.giulioferro.it ([127.0.0.1]) by localhost (aurynwork1sv1.giulioferro.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0R2LXVgmfSmN for ; Wed, 22 Jul 2009 12:05:12 +0200 (CEST) Received: from aurynmob2.giulioferro.it (localhost [127.0.0.1]) (Authenticated sender: gferro@giulioferro.it) by mail.giulioferro.it (Postfix) with ESMTP id 69B4C33D0A for ; Wed, 22 Jul 2009 12:05:12 +0200 (CEST) Message-ID: <4A66E39A.8000201@zirakzigil.org> Date: Wed, 22 Jul 2009 12:02:02 +0200 From: Giulio Ferro User-Agent: Thunderbird 2.0.0.21 (X11/20090323) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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:17:20 -0000 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. 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 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... Can someone point me what I'm doing wrong? Thanks.